telepot icon indicating copy to clipboard operation
telepot copied to clipboard

inlineKeyboardMarkup url support

Open ZaynJarvis opened this issue 6 years ago • 3 comments

inlineKeyboard button url attribute does not support tg:// protocal.

ZaynJarvis avatar Apr 26 '18 11:04 ZaynJarvis

I don't quite understand what you mean. Can you elaborate?

nickoala avatar May 06 '18 16:05 nickoala

Sorry, I mean the inline keyboard button function with attribute only support http protocol. I thought it will be better if it supports tg:// protocol as well so that I can click on the button and link to other telegram users' chat interface.

For example:

InlineKeyboardMarkup(inline_keyboard=[InlineKeyboardButton(text=lst[i+1][1],url='tg://user?id=000000')])

ZaynJarvis avatar May 07 '18 07:05 ZaynJarvis

Um ... I think this is an issue with Telegram, how the app presents the URL. It doesn't have anything to do with telepot, which simply passes the URL to Telegram servers.

nickoala avatar Jun 09 '18 16:06 nickoala