Telethon: Opening dialogs with bots using url

Created on 18 Feb 2018  路  3Comments  路  Source: LonamiWebs/Telethon

Hi!
Have a question about opening dialogs with bots if I have a link such like: "https://telegram.me/BTC_CHANGE_BOT?start=KU73I4FG8CSB2ECBYR5Y8JssCheque"
Is that just a get request? If yes, how I could use it?
I know about ImportChatInviteRequest() method, but url must include "joinchat" part.

Thanks for any thoughts!

Most helpful comment

Oh sorry, it was so easy, so I've got embarrassed=)

According to: https://core.telegram.org/bots,
Queries like "https://telegram.me/triviabot?start=test" it's like a message to the bot with username @triviabot, containing a command "/start" with payload "test", or just "/start test"

So, in my case, I resolved that in this way:
client.send_message('BTC_CHANGE_BOT', '/start KU73I4FG8CSB2ECBYR5Y8JssCheque')

Hope this will help somebody! ;)

All 3 comments

Would be nice if you told us how you solved the issue?

Oh sorry, it was so easy, so I've got embarrassed=)

According to: https://core.telegram.org/bots,
Queries like "https://telegram.me/triviabot?start=test" it's like a message to the bot with username @triviabot, containing a command "/start" with payload "test", or just "/start test"

So, in my case, I resolved that in this way:
client.send_message('BTC_CHANGE_BOT', '/start KU73I4FG8CSB2ECBYR5Y8JssCheque')

Hope this will help somebody! ;)

Alright nice.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iranpak picture iranpak  路  3Comments

saeedesfandi picture saeedesfandi  路  3Comments

ksanderer picture ksanderer  路  3Comments

Fleyderer picture Fleyderer  路  3Comments

adv-zl picture adv-zl  路  3Comments