Constants

class ehforwarderbot.constants.MsgType(value)[source]

An enumeration.

Animation = 'Animation'

Message with an animation, usually in the form of GIF or soundless video.

Audio = 'Voice'

Audio messages (deprecated).

Deprecated since version Use: Voice if the message has a voice message (usually recorded). Use File if the message has a music file (usually uploaded).

File = 'File'

File message.

Image = 'Image'

Image (picture) message.

Notes

Animated GIF images must use Animation type instead.

Message that is mainly one specific link, or a text message with one link preview.

Location = 'Location'

Location message.

Status = 'Status'

Status from a user in a chat, usually typing and uploading.

Sticker = 'Sticker'

Pictures sent with few text caption, usually a transparent background, and a limited number of options that is usually not from the user’s photo gallery.

Text = 'Text'

Text message

Unsupported = 'Unsupported'

Any type of message that is not listed above. A text representation is required.

Video = 'Video'

Video message

Voice = 'Voice'

Voice messages, usually recorded right before sending.