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.
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
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.
According to official documentation it is possible to mention user by its numerical id with markup: [inline mention of a user](tg://user?id=123456789)
Use @webpagebot You can send the link [up to 10] you want to update to this Bot and it will scan your site and generate the new image thumbnail, site name and description. Note: You may need to restart your Telegram client to see the updates Images are cached too. Update them the same way. … Read more
Now all clients allow to do it, but it’s not pretty simple. In any Telegram client: Open Channel info (in app title) Choose Administrators Add Administrator There will be no bots in contact list, so you need to search for it. Enter your bot’s username Clicking on it you make it as administrator.
In order to get the group chat id, do as follows: Add the Telegram BOT to the group. Get the list of updates for your BOT: https://api.telegram.org/bot<YourBOTToken>/getUpdates Ex: https://api.telegram.org/bot123456789:jbd78sadvbdy63d37gda37bd8/getUpdates Look for the “chat” object: {“update_id”:8393,”message”:{“message_id”:3,”from”:{“id”:7474,”first_name”:”AAA”},”chat”:{“id”:<group_ID>,”title”:””},”date”:25497,”new_chat_participant”:{“id”:71,”first_name”:”NAME”,”username”:”YOUR_BOT_NAME”}}} This is a sample of the response when you add your BOT into a group. Use the “id” of the … Read more