miniproto.messages
miniproto.messages
Section titled “miniproto.messages”Parse lightweight message markup and normalize Telegram message responses.
Public objects
Section titled “Public objects”MessageParseMode— Public attributeminiproto.messages.MessageParseMode.ParsedMessageText— Rendered message text and UTF-16-indexed MTProto entities.parse_message_text— Render the supported lightweight Markdown delimiters into MTProto entities.make_random_id— Return a non-zero random 63-bit client message identifier.message_from_send_result— Normalize a send response, retaining supplied values when Telegram omits a message.message_from_raw— Convert a raw Telegram message usingfallback_peerfor unknown peer forms.message_from_update_result— Normalize an update response or create a fallback message when none is present.messages_from_history_result— Convert only concrete raw messages from a history result in source order.