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(x)

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

ehforwarderbot.types.ExtraCommandName(x)

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

ehforwarderbot.types.InstanceID(x)

Instance ID of a module.

ehforwarderbot.types.MessageID(x)

Message ID from slave channel or middleware.

ehforwarderbot.types.ModuleID(x)

Module ID, including instance ID after # if available.

ehforwarderbot.types.ReactionName(x)

Canonical representation of a reaction, usually an emoji.

ehforwarderbot.types.Reactions = typing.Mapping[ReactionName, typing.Collection[ForwardRef('ChatMember')]]

Reactions to a message.