Since day one, we've also had a free and open Telegram API that allows anyone to create their own messaging apps operating in the Telegram cloud. Users can interact with bots by sending them messages, commands and inline requests. What’s a Bot Bots are third-party applications that run inside Telegram. To create a simple bot (called SMTFirstBot) using their open API. Please ask questions or clarifications on the comments, I will update. ![]() ![]() ![]() With this API we can build our own tools. Create your own Telegram Bot (step-by-step instructions) for free with Google App Engine. # Send message bot $ sendMessage(chat_id, text = "foo *bold* _italic_", parse_mode = "Markdown" ) # Send photo bot $ sendPhoto(chat_id, photo = "" ) # Send audio bot $ sendAudio(chat_id, audio = "" ) # Send document bot $ sendDocument(chat_id, document = paste0( "", "" ) ) # Send sticker bot $ sendSticker(chat_id, sticker = "" ) # Send video bot $ sendVideo(chat_id, video = "" ) # Send gif bot $ sendAnimation(chat_id, animation = "" ) # Send location bot $ sendLocation(chat_id, latitude = 51.521727, longitude = - 0.117255 ) # Send chat action bot $ sendChatAction(chat_id, action = "typing" ) # Get user profile photos photos <- bot $ getUserProfilePhotos( user_id = chat_id) # Download user profile photo file_id <- photos $photos]] $file_id bot $ getFile(file_id, destfile = "photo. TDLib Build Your Own Telegram Telegram offers developers more than just the Bot API. Telegram has an open API and protocol free for everyone.
0 Comments
Leave a Reply. |