From 7483d3df37d4916de64dec4a50d1223b44c5ba1c Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 5 Apr 2018 10:59:12 +0200 Subject: [PATCH] Use correct chat ids --- pyrogram/client/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/utils.py b/pyrogram/client/utils.py index 5fe04ee5..25511426 100644 --- a/pyrogram/client/utils.py +++ b/pyrogram/client/utils.py @@ -431,8 +431,8 @@ def parse_message_service( new_chat_title=new_chat_title, # TODO: new_chat_photo delete_chat_photo=delete_chat_photo, - migrate_to_chat_id=migrate_to_chat_id, - migrate_from_chat_id=migrate_from_chat_id, + migrate_to_chat_id=int("-100" + str(migrate_to_chat_id)) if migrate_to_chat_id else None, + migrate_from_chat_id=-migrate_from_chat_id if migrate_from_chat_id else None, group_chat_created=group_chat_created # TODO: supergroup_chat_created # TODO: channel_chat_created