Skip to content

Commit

Permalink
id command show reply file_id
Browse files Browse the repository at this point in the history
  • Loading branch information
canvex authored Feb 13, 2024
1 parent e5f74f4 commit 376e858
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pagermaid/modules/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ async def userid(message: Message):
text += f"protected: `{str(msg_from.has_protected_content)}" + "`\n"
if reply:
text += "\n" + lang("id_hint") + "\nMessage ID: `" + str(reply.id) + "`"
if reply.photo and reply.photo.file_id:
text += "\nphoto_id: `" + str(reply.photo.file_id) + "`"
if reply.video and reply.video.file_id:
text += "\nvideo_id: `" + str(reply.video.file_id) + "`"
if reply.document and reply.document.file_id:
text += "\ndocument_id: `" + str(reply.document.file_id) + "`"
try:
text += "\n\n**User**\nid: `" + str(reply.from_user.id) + "`"
if reply.from_user.is_bot:
Expand Down

0 comments on commit 376e858

Please sign in to comment.