From 3fa30b3a505a5eb014b23893bf3ded7ce53f970e Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 9 Mar 2018 14:45:40 +0100 Subject: [PATCH] Add Contact type --- pyrogram/client/types/contact.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 pyrogram/client/types/contact.py diff --git a/pyrogram/client/types/contact.py b/pyrogram/client/types/contact.py new file mode 100644 index 00000000..e07fb441 --- /dev/null +++ b/pyrogram/client/types/contact.py @@ -0,0 +1,10 @@ +class Contact: + def __init__(self, + phone_number: str, + first_name: str, + last_name: str = None, + user_id: int = None): + self.phone_number = phone_number + self.first_name = first_name + self.last_name = last_name + self.user_id = user_id