File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ async def create_topic(event: Message):
3030 topic_id = result .updates [0 ].id
3131 link = f"https://t.me/c/{ str (config .chats .forum )[4 :]} /{ topic_id } "
3232 await db .Topics ().add (event .sender_id , topic_id )
33- await event .reply (phrase .forum .topic_created .format (link = link , title = title ))
33+ await event .reply (
34+ phrase .forum .topic_created .format (link = link , title = title )
35+ )
3436 except Exception :
3537 logger .exception ("Ошибка создания топика" )
3638
3739
3840@func .new_command (r"\-топик(.*)" , chats = config .chats .forum )
3941async def delete_topic (event : Message ):
40- await event .reply (
41- await client (functions .messages .GetForumTopicDefaultIconsRequest ())
42- )
42+ await event .reply (event )
4343 reason : str = event .pattern_match .group (1 ).strip ()
4444 topic_id = event .reply_to_msg_id
4545 if not topic_id :
@@ -55,4 +55,6 @@ async def delete_topic(event: Message):
5555 peer = config .chats .forum , topic_id = topic_id , closed = True
5656 )
5757 )
58- return await event .reply (phrase .forum .closed .format (reason = reason or "Без причины" ))
58+ return await event .reply (
59+ phrase .forum .closed .format (reason = reason or "Без причины" )
60+ )
You can’t perform that action at this time.
0 commit comments