Struct telegram_client::listener::lasync::RasyncLout
source[−]pub struct RasyncLout { /* private fields */ }
Expand description
Get listener
Implementations
when telegram client throw exception
when receive data from tdlib
Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization
Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update
Some animated emoji message was clicked and a big animated sticker must be played if the message is visible on the screen. chatActionWatchingAnimations with the text of the message needs to be sent if the sticker is played
The parameters of animation search through GetOption(“animation_search_bot_username”) bot has changed
The user authorization state has changed
Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application
Some data in basicGroupFullInfo has been changed
New call was created or information about a call was updated
A message sender activity in the chat has changed
The chat action bar was changed
The value of the default disable_notification parameter, used when a message is sent to the chat, was changed
A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update mustn’t be applied
The list of chat filters or a chat filter has changed
A chat content was allowed or restricted for saving
A chat’s has_scheduled_messages field has changed
A chat was blocked or unblocked
A chat was marked as unread or was read
The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case
User rights changed in a chat; for bots only
The message sender that is selected to send messages in a chat has changed
The message Time To Live setting for a chat was changed
Notification settings for a chat were changed
The number of online group members has changed. This update with non-zero count is sent only for currently opened chats. There is no guarantee that it will be sent just after the count has changed
The chat pending join requests were changed
Chat permissions was changed
A chat photo was changed
The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent
Incoming messages were read or the number of unread messages has been changed
Outgoing messages were read
The default chat reply markup was changed. Can occur because new messages with reply markup were received or because an old reply markup was hidden by the user
The chat theme was changed
The list of available chat themes has changed
The title of a chat was changed
The chat unread_mention_count has changed
A chat video chat state has changed
The connection state has changed. This update must be used only to show a human-readable description of the connection state
Some messages were deleted
The list of supported dice emojis has changed
The list of favorite stickers was updated
Information about a file was updated
The file generation process needs to be started by the application
File generation is no longer needed
Information about a group call was updated
Information about a group call participant was changed. The updates are sent only after the group call is received through getGroupCall and only if the call is joined or being joined
Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications
The list of installed sticker sets was updated
Some language pack strings have been updated
The message content has changed
The message content was opened. Updates voice note messages to “listened”, video note messages to “viewed” and starts the TTL timer for self-destructing messages
A message was edited. Changes in the message content will come in a separate updateMessageContent
The information about interactions with a message has changed
The message pinned state was changed
A message with a live location was viewed. When the update is received, the application is supposed to update the live location
A message with an unread mention was read
A request to send a message has reached the Telegram server. This doesn’t mean that the message will be sent successfully or even that the send message request will be processed. This update will be sent only if the option “use_quick_ack” is set to true. This update may be sent multiple times for the same message
A message failed to send. Be aware that some messages being sent can be irrecoverably deleted, in which case updateDeleteMessages will be received instead of this update
A message has been successfully sent
New call signaling data arrived
A new incoming callback query; for bots only
A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates
A user sent a join request to a chat; for bots only
The user has chosen a result of an inline query; for bots only
A new incoming event; for bots only
A new incoming query; for bots only
A new incoming callback query from a message sent via a bot; for bots only
A new incoming inline query; for bots only
A new message was received; can also be an outgoing message
A new incoming pre-checkout query; for bots only. Contains full information about a checkout
A new incoming shipping query; for bots only. Only for invoices with flexible price
A notification was changed
A list of active notifications in a notification group has changed
An option changed its value
A poll was updated; for bots only
A user changed the answer to a poll; for bots only
The list of recently used stickers was updated
The list of saved animations was updated
Notification settings for some type of chats were updated
Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application
The selected background has changed
A service notification from the server was received. Upon receiving this the application must show a popup with the content of the notification
A sticker set has changed
The list of suggested to the user actions has changed
Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application
Some data in supergroupFullInfo has been changed
New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method must be called with the reason “Decline ToS update”
The list of trending sticker sets was updated or some of them were viewed
Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used
Number of unread messages in a chat list has changed. This update is sent only if the message database is used
Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application
Some data in userFullInfo has been changed
Some privacy setting rules have been changed
The user went online or offline
The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request
Represents the current authorization state of the TDLib client
Represents result of checking whether the current session can be used to transfer a chat ownership to another user
Contains a detailed statistics about a chat
Represents result of checking whether a username can be set for a chat
Represents result of checking whether a name can be used for a new sticker set
Describes an internal https://t.me or tg: link, which must be processed by the app in a special way
Represents a JSON value
Represents the value of a string in a language pack
Describes a stream to which TDLib internal log is written
Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl
Contains information about a file with messages exported from another app
Represents the value of an option
Contains information about a Telegram Passport element
Represents result of 2-step verification password reset
Describes a statistical graph
Contains notifications about data changes
Contains information about the period of inactivity after which the current user’s account will automatically be deleted
Describes an animated representation of an emoji
Represents a list of animations
Information about the authentication code that was sent
Contains auto-download settings presets for the current user
Describes a chat background
Contains a list of backgrounds
Information about a bank card
Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users)
Contains full information about a basic group
Contains a list of bot commands
Contains the call identifier
Contains a bot’s answer to a callback query
A chat. (Can be a private chat, basic group, supergroup, or secret chat)
Represents a list of chat administrators
Contains a list of chat events
Represents a filter of user chats
Contains basic information about a chat filter
Contains a chat invite link
Contains a list of chat invite link counts
Contains information about a chat invite link
Contains a list of chat members joined a chat via an invite link
Contains a list of chat invite links
Contains a list of requests to join a chat
Contains a list of chat lists
Describes a user or a chat as a member of another chat
Contains a list of chat members
Contains a list of chat or user profile photos
Represents a list of chats
Represents a list of chats located nearby
Contains a list of websites the current user is logged in with Telegram
Contains a counter
Contains information about countries
Contains the result of a custom request
Contains database statistics
Contains information about a tg: deep link
Information about the email address authentication code that was sent
Represents a list of emoji
An object of this type can be returned on every function call, in case of an error
Represents a file
Contains a part of a file
A text with some entities
Contains a list of messages found by a search
Contains a list of game high scores
Describes a group call
Contains the group call identifier
Contains a list of hashtags
Contains an HTTP URL
Represents the result of an ImportContacts request
Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query
Contains information about a language pack
Contains a list of language pack strings
Contains information about the current localization target
Contains a list of available TDLib internal log tags
Contains a TDLib internal log verbosity level
Describes a message
Contains information about found messages, split by days according to the option “utc_time_offset”
Contains an HTTPS link to a message in a supergroup or channel
Contains information about a link to a message in a chat
Contains a list of message positions
Represents a list of message senders
A detailed statistics about a message
Contains information about a message thread
Contains a list of messages
A full list of available network statistic entries
An object of this type is returned on a successful function call for certain functions
Order information
Contains information about a Telegram Passport authorization form that was requested
Contains information about saved Telegram Passport elements
Contains information about a Telegram Passport elements and corresponding errors
Represents the current state of 2-step verification
Contains information about an invoice payment form
Contains information about a successful payment
Contains the result of a payment request
Contains information about a phone number
Represents a list of proxy servers
Contains information about a proxy server
Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification
Contains a list of recommended chat filters
Contains information about the current recovery email address
Contains information about notification settings for several chats
Contains a value representing a number of seconds
Represents a secret chat
Contains information about one session in a Telegram application used by the current user. Sessions must be shown to the user in the returned order
Contains a list of sessions
Describes a sponsored message
Describes a sticker
Represents a sticker set
Represents a list of sticker sets
Represents a list of stickers
Contains the exact storage usage statistics split by chats and file type
Contains approximate storage usage statistics, excluding files of unknown file type
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers
Contains full information about a supergroup or channel
Contains a list of t.me URLs
Returns information about the availability of a temporary password, which can be used for payments
A simple object containing a sequence of bytes; for testing only
A simple object containing a number; for testing only
A simple object containing a string; for testing only
A simple object containing a vector of numbers; for testing only
A simple object containing a vector of objects that hold a number; for testing only
A simple object containing a vector of strings; for testing only
A simple object containing a vector of objects that hold a string; for testing only
Contains some text
Contains a list of text entities
Contains a list of updates
Represents a user
Contains full information about a user
A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed
Represents a list of users
Contains a temporary identifier of validated order information, which is stored for one hour. Also contains the available shipping options
Describes a web page preview
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RasyncLout
impl Send for RasyncLout
impl Sync for RasyncLout
impl Unpin for RasyncLout
impl !UnwindSafe for RasyncLout
Blanket Implementations
Mutably borrows from an owned value. Read more