peyk.platforms.telegram.types.community

Classes

Community([id, title, bot, name])

Represents a community (a group of chats).

class peyk.platforms.telegram.types.community.Community(id: int = 0, title: str = '', bot: User | None = None, name: str | None = None)[source]

Bases: object

Represents a community (a group of chats).

Variables:
  • id (int) – Unique identifier for this community. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.

  • name (str | None) – Name of the community

id: int = 0
title: str = ''
bot: User | None = None
name: str | None = None
classmethod from_dict(data: dict | None) Community | None[source]

Provides the from dict operation for the Telegram integration.

Parameters:

data – Value used by this operation.

Returns:

Result produced by the operation.