Telegram Bots Applications for telegram
Telegram BotsApplications for telegram
An introduction for developers
An Introduction1.
What can I do with bots?
◎ Get customized notifications and news Yandex, Forbes Bot, TechCrunch Bot◎ Integrate with other services Wiki Bot, Music Bot, Youtube Bot, Github Bot …◎ Create custom tools Markdown bot, Sticker bot, Vote bot, Like bot◎ Single- and multiplayer games Travia Bot◎ Social services HotOrBot◎ Do virtually anything else * * Except for dishes — bots are terrible at doing the dishes.
More examples
Bots more powerful than humans
Bot perks2.
How user interact with bots?
◎ Send messages and commands to opened chats bots by opening a chat with them.
Commands
/command [optional] [argument]
Keyboards
Inline keyboards and on-the-fly updating
Don’t send messages to chat.
How user interact with bots?
◎ Send requests directly from the input field by typing the bot's @username and a query.
◎ Send requests directly from the input field by typing the bot's @username and a query.
Inline mode
Location and Number
Privacy mode
A bot running in privacy mode will not receive all messages that people send to the group. Instead, it will only receive:
◎ Messages that start with a slash ‘/’ (see Commands above)◎ Replies to the bot's own messages◎ Service messages (people added or removed from the group, etc.)
an HTTP-based interface created for developers
Telegram Bot API3.
Making requests
token: 255351772:AAGWW5SJ7766--JXUYpOz0rJnp0KjFj7GY0
https://api.telegram.org/bot<token>/METHOD_NAME
Examples: 1. getMe2. getUpdates (https://telegram.me/itgm_development_bot)3. getUpdates with long polling
Available types
◎ User◎ Chat◎ Message◎ MessageEntity◎ PhotoSize◎ Audio ◎ Document ◎ Sticker◎ Video◎ Voice
Read more …
◎ Contact◎ Location◎ Venue (location + address)◎ UserProfilesPhotos◎ File◎ ReplyKeyboardMarkup◎ KeyboardButton◎ ReplyKeyboardHide◎ InlineKeyboardMarkup ◎ InlineKeyboardButton …
ITGM BotLet’s code4.
Deploy5.Containerize and deploy to Digital Ocean
Все равно надо задеплоить!
Деплоить