Telegram Bot. Get User timezone
It’s imposible by standard Bot API. You can ask user for location, and next, from this location calculate timezone for user.
It’s imposible by standard Bot API. You can ask user for location, and next, from this location calculate timezone for user.
Telegram recently released their new Bot API which makes sending/receiving messages trivial. I suggest you also take a look at that and see if it fits your needs, it beats wrapping the client library or integrating with their MTProto API. import urllib import urllib2 # Generate a bot ID here: https://core.telegram.org/bots#botfather bot_id = “{YOUR_BOT_ID}” # … Read more
The FAQ reads: All bots, regardless of settings, will receive: All service messages. All messages from private chats with users. All messages from channels where they are a member. Bot admins and bots with privacy mode disabled will receive all messages except messages sent by other bots. Bots with privacy mode enabled will receive: Commands … Read more
NEW and SIMPLE answer : Just ask the bot father (https://t.me/BotFather) to help you create a new bot and give you the api key . very simple and lovely . (thanks Mr.https://stackoverflow.com/users/5485852/john) go to https://t.me/BotFather type /newbot choose a name for your bot choose a username for your bot Done! it will send you the … Read more
There is no such functionality in Telegram Bot API right now. UPD 2017-05-19: There is an official method deleteMessage, more info: https://core.telegram.org/bots/api#deletemessage https://stackoverflow.com/a/43965602/1140438
You have to use the @BotFather bot to set the Group Privacy off. This let the bot to access all the group messages. By default, Group Privacy is enabled for bots. This setting has to be changed used the @BotFather bot >> Bot Settings >> Group Privacy >> Turn off Please note that this change … Read more
Set the Telegram API parse_mode parameter to HTML and wrap the message in <pre></pre> , but remember that telegram API does not support nested tags. <pre> | Tables | Are | Cool | |———-|:————-:|——:| | col 1 is | left-aligned | $1600 | | col 2 is | centered | $12 | | col 3 … Read more
Go to @webpagebot and send the link (up to 10) you want to update. Automatically will scan your site and generate the new image thumbnail, site name and description. Remember to have og prefix in your html tag as: <html prefix=”og: http://ogp.me/ns#”> or telegram bot will not update the graph cache. via telegramgeeks
You can do this in setting, you need to check by yourself, just exit program if .message.from.id not equal to yours. You can disable join group via /setjoingroup, but you can’t invite bot to group either.