platypush.message.response.chat.telegram

class platypush.message.response.chat.telegram.TelegramChatResponse(chat_id: int, link: str, username: str, invite_link: Optional[str], title: Optional[str] = None, description: Optional[str] = None, type: Optional[str] = None, first_name: Optional[str] = None, last_name: Optional[str] = None, *args, **kwargs)[source]
__init__(chat_id: int, link: str, username: str, invite_link: Optional[str], title: Optional[str] = None, description: Optional[str] = None, type: Optional[str] = None, first_name: Optional[str] = None, last_name: Optional[str] = None, *args, **kwargs)[source]
Params:

target – Target [String] origin – Origin [String] output – Output [String] errors – Errors [List of strings or exceptions]

id – Message ID this response refers to

timestamp – Message timestamp [Float]

class platypush.message.response.chat.telegram.TelegramFileResponse(file_id: str, file_path: str, file_size: int, *args, **kwargs)[source]
__init__(file_id: str, file_path: str, file_size: int, *args, **kwargs)[source]
Params:

target – Target [String] origin – Origin [String] output – Output [String] errors – Errors [List of strings or exceptions]

id – Message ID this response refers to

timestamp – Message timestamp [Float]

class platypush.message.response.chat.telegram.TelegramMessageResponse(message_id: int, chat_id: int, creation_date: Optional[datetime.datetime], chat_username: Optional[str] = None, chat_firstname: Optional[str] = None, chat_lastname: Optional[str] = None, from_user_id: Optional[int] = None, from_username: Optional[str] = None, from_firstname: Optional[str] = None, from_lastname: Optional[str] = None, text: Optional[str] = None, caption: Optional[str] = None, edit_date: Optional[datetime.datetime] = None, forward_date: Optional[datetime.datetime] = None, forward_from_message_id: Optional[int] = None, photo_file_id: Optional[str] = None, photo_file_size: Optional[int] = None, photo_width: Optional[int] = None, photo_height: Optional[int] = None, document_file_id: Optional[str] = None, document_file_name: Optional[str] = None, document_file_size: Optional[str] = None, document_mime_type: Optional[str] = None, audio_file_id: Optional[str] = None, audio_file_size: Optional[str] = None, audio_mime_type: Optional[str] = None, audio_performer: Optional[str] = None, audio_title: Optional[str] = None, audio_duration: Optional[str] = None, location_latitude: Optional[float] = None, location_longitude: Optional[float] = None, contact_phone_number: Optional[str] = None, contact_first_name: Optional[str] = None, contact_last_name: Optional[str] = None, contact_user_id: Optional[int] = None, contact_vcard: Optional[str] = None, video_file_id: Optional[str] = None, video_file_size: Optional[int] = None, video_width: Optional[int] = None, video_height: Optional[int] = None, video_mime_type: Optional[str] = None, video_duration: Optional[str] = None, link: Optional[str] = None, media_group_id: Optional[int] = None, *args, **kwargs)[source]
__init__(message_id: int, chat_id: int, creation_date: Optional[datetime.datetime], chat_username: Optional[str] = None, chat_firstname: Optional[str] = None, chat_lastname: Optional[str] = None, from_user_id: Optional[int] = None, from_username: Optional[str] = None, from_firstname: Optional[str] = None, from_lastname: Optional[str] = None, text: Optional[str] = None, caption: Optional[str] = None, edit_date: Optional[datetime.datetime] = None, forward_date: Optional[datetime.datetime] = None, forward_from_message_id: Optional[int] = None, photo_file_id: Optional[str] = None, photo_file_size: Optional[int] = None, photo_width: Optional[int] = None, photo_height: Optional[int] = None, document_file_id: Optional[str] = None, document_file_name: Optional[str] = None, document_file_size: Optional[str] = None, document_mime_type: Optional[str] = None, audio_file_id: Optional[str] = None, audio_file_size: Optional[str] = None, audio_mime_type: Optional[str] = None, audio_performer: Optional[str] = None, audio_title: Optional[str] = None, audio_duration: Optional[str] = None, location_latitude: Optional[float] = None, location_longitude: Optional[float] = None, contact_phone_number: Optional[str] = None, contact_first_name: Optional[str] = None, contact_last_name: Optional[str] = None, contact_user_id: Optional[int] = None, contact_vcard: Optional[str] = None, video_file_id: Optional[str] = None, video_file_size: Optional[int] = None, video_width: Optional[int] = None, video_height: Optional[int] = None, video_mime_type: Optional[str] = None, video_duration: Optional[str] = None, link: Optional[str] = None, media_group_id: Optional[int] = None, *args, **kwargs)[source]
Params:

target – Target [String] origin – Origin [String] output – Output [String] errors – Errors [List of strings or exceptions]

id – Message ID this response refers to

timestamp – Message timestamp [Float]

class platypush.message.response.chat.telegram.TelegramUserResponse(user_id: int, username: str, is_bot: bool, first_name: str, last_name: Optional[str] = None, language_code: Optional[str] = None, link: Optional[str] = None, *args, **kwargs)[source]
__init__(user_id: int, username: str, is_bot: bool, first_name: str, last_name: Optional[str] = None, language_code: Optional[str] = None, link: Optional[str] = None, *args, **kwargs)[source]
Params:

target – Target [String] origin – Origin [String] output – Output [String] errors – Errors [List of strings or exceptions]

id – Message ID this response refers to

timestamp – Message timestamp [Float]

class platypush.message.response.chat.telegram.TelegramUsersResponse(users: List[platypush.message.response.chat.telegram.TelegramUserResponse], *args, **kwargs)[source]
__init__(users: List[platypush.message.response.chat.telegram.TelegramUserResponse], *args, **kwargs)[source]
Params:

target – Target [String] origin – Origin [String] output – Output [String] errors – Errors [List of strings or exceptions]

id – Message ID this response refers to

timestamp – Message timestamp [Float]