From 2e9ee6b0731b52bba0e8d1cfafb73a4f7f6046c4 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 27 Feb 2018 18:48:30 +0100 Subject: [PATCH] Use proper client_id values --- pyrogram/client/input_phone_contact.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyrogram/client/input_phone_contact.py b/pyrogram/client/input_phone_contact.py index 002a3121..9268ca0a 100644 --- a/pyrogram/client/input_phone_contact.py +++ b/pyrogram/client/input_phone_contact.py @@ -17,6 +17,7 @@ # along with Pyrogram. If not, see . from pyrogram.api.types import InputPhoneContact as RawInputPhoneContact +from pyrogram.session.internals import MsgId class InputPhoneContact: @@ -36,7 +37,7 @@ class InputPhoneContact: def __new__(cls, phone: str, first_name: str, last_name: str = ""): return RawInputPhoneContact( - client_id=0, + client_id=MsgId(), phone="+" + phone.strip("+"), first_name=first_name, last_name=last_name