mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-21 23:08:02 +00:00
✨ feat: display topic title and ID in forum group (#86)
All checks were successful
Docker Dev Build / docker build and publish (push) Successful in 7m39s
All checks were successful
Docker Dev Build / docker build and publish (push) Successful in 7m39s
This commit is contained in:
parent
b9efbecea3
commit
6d892917b4
@ -28,6 +28,9 @@ async def userid(message: Message):
|
|||||||
text += f"username: @{msg_from.username}" + "\n"
|
text += f"username: @{msg_from.username}" + "\n"
|
||||||
if msg_from.type in [ChatType.SUPERGROUP, ChatType.CHANNEL]:
|
if msg_from.type in [ChatType.SUPERGROUP, ChatType.CHANNEL]:
|
||||||
text += f"title: `{msg_from.title}" + "`\n"
|
text += f"title: `{msg_from.title}" + "`\n"
|
||||||
|
if message.topic:
|
||||||
|
text += f"topic title: `{message.topic.title}`\n"
|
||||||
|
text += f"topic ID: `{message.topic.id}`\n"
|
||||||
try:
|
try:
|
||||||
if msg_from.username:
|
if msg_from.username:
|
||||||
text += f"username: @{msg_from.username}" + "\n"
|
text += f"username: @{msg_from.username}" + "\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user