Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.inline_handler(func=lambda query: True)
- def inline_mode(query):
- telegram = types.InlineQueryResultCachedPhoto(
- id="1",
- photo_file_id="AgADAgAD6rMxGyBnGwABgBmcoHgy01IENAAQSYK_1gyoAAU-5aQACAg",
- caption="Это капибара №1"
- )
- telegram2 = types.InlineQueryResultCachedPhoto(
- id="2",
- photo_file_id="AgADAgAD67MxGyBnGwABCvqPIYxMoNHENAAS51HjO88y_Z0ffAQABAg",
- caption="Это капибара №2"
- )
- bot.answer_inline_query(query.id, [telegram, telegram2])
- type="photo"
- bot.polling()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement