mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-03 14:04:51 +00:00
Use proper client_id values
This commit is contained in:
parent
b7db8cade1
commit
2e9ee6b073
1 changed files with 2 additions and 1 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from pyrogram.api.types import InputPhoneContact as RawInputPhoneContact
|
from pyrogram.api.types import InputPhoneContact as RawInputPhoneContact
|
||||||
|
from pyrogram.session.internals import MsgId
|
||||||
|
|
||||||
|
|
||||||
class InputPhoneContact:
|
class InputPhoneContact:
|
||||||
|
|
@ -36,7 +37,7 @@ class InputPhoneContact:
|
||||||
|
|
||||||
def __new__(cls, phone: str, first_name: str, last_name: str = ""):
|
def __new__(cls, phone: str, first_name: str, last_name: str = ""):
|
||||||
return RawInputPhoneContact(
|
return RawInputPhoneContact(
|
||||||
client_id=0,
|
client_id=MsgId(),
|
||||||
phone="+" + phone.strip("+"),
|
phone="+" + phone.strip("+"),
|
||||||
first_name=first_name,
|
first_name=first_name,
|
||||||
last_name=last_name
|
last_name=last_name
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue