eternnoir / pyTelegramBotAPI

Python Telegram bot api.
GNU General Public License v2.0
8.11k stars 2.03k forks source link

Switch to chat with bot in inline mode #290

Closed MonsterDeveloper closed 7 years ago

MonsterDeveloper commented 7 years ago

Please answer these questions before submitting your issue. Thanks!

  1. What version of pyTelegramBotAPI are you using? Latest

  2. What OS are you using? Ubuntu 16.04

  3. What version of python are you using? Python3.5 How can I answer inline query with button that returns user to chat with bot like this: screenshot_2017-02-03-15-38-33-235_org telegram messenger

MonsterDeveloper commented 7 years ago

Issue fixed

Solution

bot.answer_inline_query(inline_query.id, [], cache_time=300, is_personal=True, switch_pm_text="Nothing found. Tap here for help")