twtb.logic.telegram.data#

Module for buttons’ data.

Module Contents#

Classes#

ButtonData

Data for buttons, that then is sent to callbacks.

class ButtonData(*args, **kwds)[source]#

Bases: enum.Enum

Data for buttons, that then is sent to callbacks.

SUBSCRIBE_TO_WORD: bytes[source]#
UNSUBSCRIBE_FROM_WORD: bytes[source]#
LIST_MY_SUBSCRIBES: bytes[source]#
LIST_KNOWN_CHANNELS: bytes[source]#
ADD_CHANNEL: bytes[source]#
static _generate_next_value_(name: str, *_) bytes[source]#

Generate the next value when not given.

name: the name of the member start: the initial start value or None count: the number of existing members last_values: the list of values assigned