Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if key['type'] == 'photo':
- write_msg(from_id, 'it is a photo')
- send_file(mess, user_id)
- if key['type'] == 'video':
- write_msg(from_id, 'it is a video')
- send_file(mess, user_id)
- if key['type'] == 'doc':
- write_msg(from_id, 'it is a doc')
- send_file(mess, user_id)
- if key['type'] == 'audio':
- write_msg(from_id, 'it is an audio')
- send_file(mess, user_id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement