peyk.platforms.telegram.types.write_access_allowed

Classes

WriteAccessAllowed([from_request, ...])

This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.

class peyk.platforms.telegram.types.write_access_allowed.WriteAccessAllowed(from_request: bool | None = None, web_app_name: str | None = None, from_attachment_menu: bool | None = None)[source]

Bases: object

This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess.

Variables:
  • from_request (bool | None) – True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess

  • web_app_name (str | None) – Name of the Web App, if the access was granted when the Web App was launched from a link

  • from_attachment_menu (bool | None) – True, if the access was granted when the bot was added to the attachment or side menu

from_request: bool | None = None
web_app_name: str | None = None
from_attachment_menu: bool | None = None
classmethod from_dict(data: dict | None) WriteAccessAllowed | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.