Custom Type Hints

A list of type aliases when no separate class is defined for some types of values. Types for user-facing values (display names, descriptions, message text, etc.) are not otherwise defined.

Most of types listed here are defined under the “NewType” syntax in order to clarify some ambiguous values not covered by simple type checking. This is only useful if you are using static type checking in your development. If you are not using type checking of any kind, you can simply ignore values in this module.

ehforwarderbot.types.ChatID

Chat ID from slave channel or middleware, applicable to both chat and chat members.

alias of str

ehforwarderbot.types.ExtraCommandName

Command name of additional features, in the format of ^[A-Za-z][A-Za-z0-9_]{0,19}$.

alias of str

ehforwarderbot.types.InstanceID

Instance ID of a module.

alias of str

ehforwarderbot.types.MessageID

Message ID from slave channel or middleware.

alias of str

ehforwarderbot.types.ModuleID

Module ID, including instance ID after # if available.

alias of str

ehforwarderbot.types.ReactionName

Canonical representation of a reaction, usually an emoji.

alias of str

ehforwarderbot.types.Reactions

Reactions to a message.

alias of Mapping[ReactionName, Collection[ChatMember]]