peyk.platforms.telegram.types.bot_access_settings

Classes

BotAccessSettings([can_send_messages, ...])

This object describes the access settings of a bot.

class peyk.platforms.telegram.types.bot_access_settings.BotAccessSettings(can_send_messages: bool | None = None, can_send_audios: bool | None = None, can_send_documents: bool | None = None, can_send_photos: bool | None = None, can_send_videos: bool | None = None, can_send_video_notes: bool | None = None, can_send_voice_notes: bool | None = None, can_send_polls: bool | None = None, can_send_other_messages: bool | None = None, can_add_web_page_previews: bool | None = None, can_change_info: bool | None = None, can_invite_users: bool | None = None, can_pin_messages: bool | None = None, can_manage_topics: bool | None = None)[source]

Bases: object

This object describes the access settings of a bot.

Variables:
  • is_access_restricted – True, if only selected users can access the bot. The bot’s owner can always access it.

  • added_users – The list of other users who have access to the bot if the access is restricted

can_send_messages: bool | None = None
can_send_audios: bool | None = None
can_send_documents: bool | None = None
can_send_photos: bool | None = None
can_send_videos: bool | None = None
can_send_video_notes: bool | None = None
can_send_voice_notes: bool | None = None
can_send_polls: bool | None = None
can_send_other_messages: bool | None = None
can_add_web_page_previews: bool | None = None
can_change_info: bool | None = None
can_invite_users: bool | None = None
can_pin_messages: bool | None = None
can_manage_topics: bool | None = None
classmethod from_dict(data: dict | None) BotAccessSettings | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.