This repository was archived by the owner on Dec 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -125,20 +125,11 @@ async def group_upgrade_to(message: types.Message):
125125 :param message: Telegram message with "migrate_to_chat_id" field not empty
126126 """
127127 await bot .send_message (message .migrate_to_chat_id , f"Group upgraded to supergroup.\n "
128+ f"Old ID: <code>{ message .chat .id } </code>\n "
128129 f"New ID: <code>{ message .migrate_to_chat_id } </code>" )
129130 logs .track ("Group migrate" )
130131
131132
132- @dp .message_handler (content_types = ["migrate_from_chat_id" ])
133- async def group_upgrade_from (message : types .Message ):
134- """
135- When group is upgraded to supergroup, sends previous ID (why not?)
136- :param message: Telegram message with "migrate_from_chat_id" field not empty
137- """
138- await bot .send_message (message .chat .id , f"Group upgraded to supergroup.\n "
139- f"Previous ID: <code>{ message .migrate_from_chat_id } </code>" )
140-
141-
142133@dp .message_handler (lambda message : message .chat .type == "private" , content_types = types .ContentTypes .ANY )
143134async def private_chat (message : types .Message ):
144135 """
You can’t perform that action at this time.
0 commit comments