Advertisement
Guest User

dm

a guest
Feb 28th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1. @bot.inline_handler(func=lambda query: True)
  2. def inline_mode(query):
  3.     telegram = types.InlineQueryResultCachedPhoto(
  4.         id="1",
  5.         photo_file_id="AgADAgAD6rMxGyBnGwABgBmcoHgy01IENAAQSYK_1gyoAAU-5aQACAg",
  6.         caption="Это капибара №1"
  7.     )
  8.     telegram2 = types.InlineQueryResultCachedPhoto(
  9.         id="2",
  10.         photo_file_id="AgADAgAD67MxGyBnGwABCvqPIYxMoNHENAAS51HjO88y_Z0ffAQABAg",
  11.         caption="Это капибара №2"
  12.     )
  13.     bot.answer_inline_query(query.id, [telegram, telegram2])
  14. type="photo"
  15.  
  16.  
  17. bot.polling()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement