-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pyTelegramBotAPI Bot2.0 Implementation status. #130
Comments
Can you leave and example using inline keyboard button, callback query and edit message text? |
Hi! I have a problem with this implementation of your fucking amazing library. I've copy the error code here to minimize this text: I'm not sure if there is a problem with version compatibility or if this is a bug in your library, but I think the line where I find the error is ok... Thank you! |
@Thorapio Try to update python-requests |
@eternnoir , it doesn't seems to work for me... Here I paste the result of update the requests (http://pastebin.com/DRgVS2d0) and here are 2 more errors that appears to me two time when I was testing after update the requests (http://pastebin.com/DRgVS2d0). Futhermore, the first error is still happening and I don't know if I'm doing something wrong... Thanks for your response! |
That error happens when you previously installed requests with |
There is a typo in the name of the method: Correct is: v. 2.0.1 |
Is there any way so send multiple inline buttons with only one message? Like this: http://prntscr.com/awi4dg |
@MonsterDeveloper,
|
@thakryptex Oh. Originally, I use that code: http://pastebin.com/AsN6qrum. I tried this: http://pastebin.com/6D4jaMz6 but no succes |
@MonsterDeveloper, yeah, i've tried this too. |
@thakryptex Well, I think there is no way to do that. Waiting for @eternnoir answer right now) |
@thakryptex typo already fixed. About @bot.message_handler(commands=['start', 'help'])
def command_help(message):
markup = types.InlineKeyboardMarkup()
itembtna = types.InlineKeyboardButton('a', switch_inline_query="")
itembtnv = types.InlineKeyboardButton('v', switch_inline_query="")
itembtnc = types.InlineKeyboardButton('c', switch_inline_query="")
markup.row(itembtna)
markup.row(itembtnv, itembtnc)
bot.send_message(message.chat.id, "Choose one letter:", reply_markup=markup) Don't forgot update pyTelegramBotAPI version.
The reason for this error is that you didn't use any option fields in InlineKeyboardButton. The develop doc says https://core.telegram.org/bots/api#inlinekeyboardbutton
|
@eternnoir Thank you! I will try it when I come home) |
@eternnoir Thanks! That worked for me! |
@eternnoir oh, thanks, now I understand what was wrong. |
@eternnoir |
this show only buttons:
but how we should set callback query handler for inline buttons? |
How about sendGame method? |
Install pyTelegramBotAPI bot 2.0 branch
Bot 2.0 Implementation Status
New Types
New Methods
Inline bots
Bug repor.
Feel free to report bugs about this branch.
#130
The text was updated successfully, but these errors were encountered: