telegram.contact module

This module contains an object that represents a Telegram Contact.

class telegram.contact.Contact(phone_number, first_name, last_name=None, user_id=None, **kwargs)

Bases: telegram.base.TelegramObject

This object represents a Telegram Contact.

phone_number

str

first_name

str

last_name

str

user_id

int

Parameters:
  • phone_number (str) –
  • first_name (str) –
  • last_name (Optional[str]) –
  • user_id (Optional[int]) –
  • **kwargs – Arbitrary keyword arguments.
static de_json(data, bot)
Parameters:
Returns:

Return type:

telegram.Contact