Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.on_message(Filters.command("info",","))
- def my_handler(client, message):
- info = app.get_users(message.reply_to_message.from_user.id)
- app.send_photo(message.chat.id, info['photo']['small_file_id'])
- /* Error:
- Expected: "photo", got "chat_photo" file_id instead
- Traceback (most recent call last):
- File "/usr/local/lib/python3.5/dist-packages/pyrogram/client/ext/dispatcher.py", line 199, in update_worker
- handler.callback(self.client, *args)
- File "pyro.py", line 69, in my_handler
- app.send_photo(message.chat.id, info['photo']['small_file_id'])
- File "/usr/local/lib/python3.5/dist-packages/pyrogram/client/methods/messages/send_photo.py", line 152, in send_photo
- media = utils.get_input_media_from_file_id(photo, file_ref, 2)
- File "/usr/local/lib/python3.5/dist-packages/pyrogram/client/ext/utils.py", line 112, in get_input_media_from_file_id
- 'Expected: "{}", got "{}" file_id instead'.format(expected_media_type_str, media_type_str)
- ValueError: Expected: "photo", got "chat_photo" file_id instead
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement