python-telegram-bot / python-telegram-bot

We have made you a wrapper you can't refuse
https://python-telegram-bot.org
GNU General Public License v3.0
26.3k stars 5.34k forks source link

[QUESTION] inline keyboard always disappear after click on button #1949

Closed ivanDonadello closed 4 years ago

ivanDonadello commented 4 years ago

Steps to reproduce

I just want to run this example

  1. Download the example
  2. put a token
  3. run it

Expected behaviour

The inline keyboard shouldn't disappear.

Actual behaviour

The inline keyboard disappear even with if I set one_time_keyboard=False.

Configuration

System: OSX 10.9.5

Version of Python, python-telegram-bot & dependencies:

python-telegram-bot 12.7 certifi 2020.04.05.1 future 0.18.2 Python 3.6.6 (v3.6.6:4cf1f54eb7, Jun 26 2018, 19:50:54) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]

Thanks for the attention

Bibo-Joshi commented 4 years ago

That's actually, what the example is supposed to do. For an advanced example on inline keyboards, used to build menus, see inlinekeyboard2.py.

Two more notes:

ivanDonadello commented 4 years ago

Thank you very much @Bibo-Joshi