Skip to content

This API receives message sent to telegram bot. Stores the messages in mysql database. Reply to the messages according to custom logics.

Notifications You must be signed in to change notification settings

AhnafMuttaki/telegram_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

telegram_api

Telegram Bot API using getUpdates method

This is an API developed with RAW php using the telegram bot api's getUpdates method. It uses mysql as a caching server.Please follow the step by step procedure given below to use this api.

Step 1. Execute mysql command in database.sql to create database.

Step 2. Enter bot key,host_name,user_name,password in the config portion of telegram.php.

Step 3. Set your own logic of reply in prepare_reply() function of telegram.php.

Step 4. To get your Bot to contineu replying run telegram.php under a scheduler.

Created BY: Ahnaf Muttaki (July 19 2018)

About

This API receives message sent to telegram bot. Stores the messages in mysql database. Reply to the messages according to custom logics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published