Struct telegram_client::listener::Lout[][src]

pub struct Lout { /* fields omitted */ }

Get listener

Implementations

impl Lout[src]

pub fn is_support<S: AsRef<str>>(&self, name: S) -> bool[src]

pub fn handle_type(&self, api: &EventApi, td_type: &TdType) -> TGResult<bool>[src]

pub fn exception(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TGError)) + Send + Sync + 'static>>
[src]

when telegram client throw exception

pub fn receive(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &String)) -> TGResult<()> + Send + Sync + 'static>>
[src]

when receive data from tdlib

pub fn test_use_update(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestUseUpdate)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization

pub fn update_active_notifications(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateActiveNotifications)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_animation_search_parameters(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateAnimationSearchParameters)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The parameters of animation search through GetOption("animation_search_bot_username") bot has changed

pub fn update_authorization_state(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateAuthorizationState)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The user authorization state has changed

pub fn update_basic_group(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateBasicGroup)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application

pub fn update_basic_group_full_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateBasicGroupFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some data from basicGroupFullInfo has been changed

pub fn update_call(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateCall)) -> TGResult<()> + Send + Sync + 'static>>
[src]

New call was created or information about a call was updated

pub fn update_chat_action_bar(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatActionBar)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The chat action bar was changed

pub fn update_chat_default_disable_notification(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatDefaultDisableNotification)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The value of the default disable_notification parameter, used when a message is sent to the chat, was changed

pub fn update_chat_draft_message(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatDraftMessage)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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 shouldn't be applied

pub fn update_chat_filters(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatFilters)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of chat filters or a chat filter has changed

pub fn update_chat_has_scheduled_messages(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatHasScheduledMessages)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat's has_scheduled_messages field has changed

pub fn update_chat_is_blocked(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatIsBlocked)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat was blocked or unblocked

pub fn update_chat_is_marked_as_unread(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatIsMarkedAsUnread)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat was marked as unread or was read

pub fn update_chat_last_message(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatLastMessage)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_chat_notification_settings(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatNotificationSettings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Notification settings for a chat were changed

pub fn update_chat_online_member_count(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatOnlineMemberCount)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_chat_permissions(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatPermissions)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Chat permissions was changed

pub fn update_chat_photo(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatPhoto)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat photo was changed

pub fn update_chat_position(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatPosition)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent

pub fn update_chat_read_inbox(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatReadInbox)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Incoming messages were read or number of unread messages has been changed

pub fn update_chat_read_outbox(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatReadOutbox)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Outgoing messages were read

pub fn update_chat_reply_markup(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatReplyMarkup)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_chat_title(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatTitle)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The title of a chat was changed

pub fn update_chat_unread_mention_count(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatUnreadMentionCount)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The chat unread_mention_count has changed

pub fn update_chat_voice_chat(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateChatVoiceChat)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat voice chat state has changed

pub fn update_connection_state(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateConnectionState)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The connection state has changed. This update must be used only to show a human-readable description of the connection state

pub fn update_delete_messages(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateDeleteMessages)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some messages were deleted

pub fn update_dice_emojis(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateDiceEmojis)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of supported dice emojis has changed

pub fn update_favorite_stickers(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateFavoriteStickers)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of favorite stickers was updated

pub fn update_file(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateFile)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Information about a file was updated

pub fn update_file_generation_start(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateFileGenerationStart)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The file generation process needs to be started by the application

pub fn update_file_generation_stop(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateFileGenerationStop)) -> TGResult<()> + Send + Sync + 'static>>
[src]

File generation is no longer needed

pub fn update_group_call(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateGroupCall)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Information about a group call was updated

pub fn update_group_call_participant(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateGroupCallParticipant)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_have_pending_notifications(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateHavePendingNotifications)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications

pub fn update_installed_sticker_sets(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateInstalledStickerSets)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of installed sticker sets was updated

pub fn update_language_pack_strings(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateLanguagePackStrings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some language pack strings have been updated

pub fn update_message_content(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageContent)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The message content has changed

pub fn update_message_content_opened(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageContentOpened)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_message_edited(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageEdited)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A message was edited. Changes in the message content will come in a separate updateMessageContent

pub fn update_message_interaction_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageInteractionInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The information about interactions with a message has changed

pub fn update_message_is_pinned(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageIsPinned)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The message pinned state was changed

pub fn update_message_live_location_viewed(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageLiveLocationViewed)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A message with a live location was viewed. When the update is received, the application is supposed to update the live location

pub fn update_message_mention_read(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageMentionRead)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A message with an unread mention was read

pub fn update_message_send_acknowledged(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageSendAcknowledged)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_message_send_failed(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageSendFailed)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_message_send_succeeded(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateMessageSendSucceeded)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A message has been successfully sent

pub fn update_new_call_signaling_data(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewCallSignalingData)) -> TGResult<()> + Send + Sync + 'static>>
[src]

New call signaling data arrived

pub fn update_new_callback_query(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewCallbackQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming callback query; for bots only

pub fn update_new_chat(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewChat)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_new_chosen_inline_result(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewChosenInlineResult)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The user has chosen a result of an inline query; for bots only

pub fn update_new_custom_event(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewCustomEvent)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming event; for bots only

pub fn update_new_custom_query(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewCustomQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming query; for bots only

pub fn update_new_inline_callback_query(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewInlineCallbackQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming callback query from a message sent via a bot; for bots only

pub fn update_new_inline_query(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewInlineQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming inline query; for bots only

pub fn update_new_message(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewMessage)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new message was received; can also be an outgoing message

pub fn update_new_pre_checkout_query(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewPreCheckoutQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming pre-checkout query; for bots only. Contains full information about a checkout

pub fn update_new_shipping_query(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNewShippingQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming shipping query; for bots only. Only for invoices with flexible price

pub fn update_notification(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNotification)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A notification was changed

pub fn update_notification_group(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateNotificationGroup)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A list of active notifications in a notification group has changed

pub fn update_option(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateOption)) -> TGResult<()> + Send + Sync + 'static>>
[src]

An option changed its value

pub fn update_poll(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdatePoll)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A poll was updated; for bots only

pub fn update_poll_answer(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdatePollAnswer)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A user changed the answer to a poll; for bots only

pub fn update_recent_stickers(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateRecentStickers)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of recently used stickers was updated

pub fn update_saved_animations(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateSavedAnimations)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of saved animations was updated

pub fn update_scope_notification_settings(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateScopeNotificationSettings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Notification settings for some type of chats were updated

pub fn update_secret_chat(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateSecretChat)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application

pub fn update_selected_background(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateSelectedBackground)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The selected background has changed

pub fn update_service_notification(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateServiceNotification)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Service notification from the server. Upon receiving this the application must show a popup with the content of the notification

pub fn update_sticker_set(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateStickerSet)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A sticker set has changed

pub fn update_suggested_actions(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateSuggestedActions)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of suggested to the user actions has changed

pub fn update_supergroup(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateSupergroup)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_supergroup_full_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateSupergroupFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some data from supergroupFullInfo has been changed

pub fn update_terms_of_service(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateTermsOfService)) -> TGResult<()> + Send + Sync + 'static>>
[src]

New terms of service must be accepted by the user. If the terms of service are declined, then the deleteAccount method should be called with the reason "Decline ToS update"

The list of trending sticker sets was updated or some of them were viewed

pub fn update_unread_chat_count(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUnreadChatCount)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn update_unread_message_count(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUnreadMessageCount)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Number of unread messages in a chat list has changed. This update is sent only if the message database is used

pub fn update_user(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUser)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application

pub fn update_user_chat_action(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUserChatAction)) -> TGResult<()> + Send + Sync + 'static>>
[src]

User activity in the chat has changed

pub fn update_user_full_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUserFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some data from userFullInfo has been changed

pub fn update_user_privacy_setting_rules(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUserPrivacySettingRules)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some privacy setting rules have been changed

pub fn update_user_status(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUserStatus)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The user went online or offline

pub fn update_users_nearby(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UpdateUsersNearby)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request

pub fn authorization_state(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &AuthorizationState)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents the current authorization state of the TDLib client

pub fn can_transfer_ownership_result(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &CanTransferOwnershipResult)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents result of checking whether the current session can be used to transfer a chat ownership to another user

pub fn chat_statistics(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatStatistics)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a detailed statistics about a chat

pub fn check_chat_username_result(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &CheckChatUsernameResult)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents result of checking whether a username can be set for a chat

pub fn json_value(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &JsonValue)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a JSON value

pub fn language_pack_string_value(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LanguagePackStringValue)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents the value of a string in a language pack

pub fn log_stream(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LogStream)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes a stream to which TDLib internal log is written

pub fn login_url_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LoginUrlInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl

pub fn message_file_type(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &MessageFileType)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a file with messages exported from another app

pub fn option_value(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &OptionValue)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents the value of an option

pub fn passport_element(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PassportElement)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a Telegram Passport element

pub fn statistical_graph(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &StatisticalGraph)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes a statistical graph

pub fn update(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Update)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains notifications about data changes

pub fn account_ttl(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &AccountTtl)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about the period of inactivity after which the current user's account will automatically be deleted

pub fn animations(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Animations)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of animations

pub fn authentication_code_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &AuthenticationCodeInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Information about the authentication code that was sent

pub fn auto_download_settings_presets(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &AutoDownloadSettingsPresets)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains auto-download settings presets for the user

pub fn background(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Background)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes a chat background

pub fn backgrounds(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Backgrounds)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of backgrounds

pub fn bank_card_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &BankCardInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Information about a bank card

pub fn basic_group(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &BasicGroup)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users)

pub fn basic_group_full_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &BasicGroupFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains full information about a basic group

pub fn call_id(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &CallId)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains the call identifier

pub fn callback_query_answer(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &CallbackQueryAnswer)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a bot's answer to a callback query

pub fn chat(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Chat)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat. (Can be a private chat, basic group, supergroup, or secret chat)

pub fn chat_administrators(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatAdministrators)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of chat administrators

pub fn chat_events(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatEvents)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of chat events

pub fn chat_filter(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatFilter)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a filter of user chats

pub fn chat_filter_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatFilterInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains basic information about a chat filter

Contains a chat invite link

Contains information about a chat invite link

pub fn chat_lists(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatLists)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of chat lists

pub fn chat_member(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatMember)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A user with information about joining/leaving a chat

pub fn chat_members(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatMembers)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of chat members

pub fn chat_photos(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatPhotos)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of chat or user profile photos

pub fn chats(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Chats)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of chats

pub fn chats_nearby(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ChatsNearby)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of chats located nearby

pub fn connected_websites(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ConnectedWebsites)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of websites the current user is logged in with Telegram

pub fn count(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Count)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a counter

pub fn countries(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Countries)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about countries

pub fn custom_request_result(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &CustomRequestResult)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains the result of a custom request

pub fn database_statistics(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &DatabaseStatistics)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains database statistics

Contains information about a tg:// deep link

pub fn email_address_authentication_code_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &EmailAddressAuthenticationCodeInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Information about the email address authentication code that was sent

pub fn emojis(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Emojis)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of emoji

pub fn error(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Error)) -> TGResult<()> + Send + Sync + 'static>>
[src]

An object of this type can be returned on every function call, in case of an error

pub fn file(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &File)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a file

pub fn file_part(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &FilePart)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a part of a file

pub fn formatted_text(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &FormattedText)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A text with some entities

pub fn found_messages(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &FoundMessages)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of messages found by a search

pub fn game_high_scores(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &GameHighScores)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of game high scores

pub fn group_call(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &GroupCall)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes a group call

pub fn group_call_id(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &GroupCallId)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains the group call identifier

pub fn group_call_join_response(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &GroupCallJoinResponse)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes a join response for interaction with tgcalls

pub fn hashtags(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Hashtags)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of hashtags

pub fn http_url(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &HttpUrl)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains an HTTP URL

pub fn imported_contacts(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ImportedContacts)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents the result of an ImportContacts request

pub fn inline_query_results(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &InlineQueryResults)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query

pub fn language_pack_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LanguagePackInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a language pack

pub fn language_pack_strings(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LanguagePackStrings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of language pack strings

pub fn localization_target_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LocalizationTargetInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about the current localization target

pub fn log_tags(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LogTags)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of available TDLib internal log tags

pub fn log_verbosity_level(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &LogVerbosityLevel)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a TDLib internal log verbosity level

pub fn message(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Message)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes a message

Contains an HTTPS link to a message in a supergroup or channel

Contains information about a link to a message in a chat

pub fn message_senders(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &MessageSenders)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of message senders

pub fn message_statistics(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &MessageStatistics)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A detailed statistics about a message

pub fn message_thread_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &MessageThreadInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a message thread

pub fn messages(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Messages)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of messages

pub fn network_statistics(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &NetworkStatistics)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A full list of available network statistic entries

pub fn ok(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Ok)) -> TGResult<()> + Send + Sync + 'static>>
[src]

An object of this type is returned on a successful function call for certain functions

pub fn order_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &OrderInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Order information

pub fn passport_authorization_form(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PassportAuthorizationForm)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a Telegram Passport authorization form that was requested

pub fn passport_elements(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PassportElements)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about saved Telegram Passport elements

pub fn passport_elements_with_errors(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PassportElementsWithErrors)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a Telegram Passport elements and corresponding errors

pub fn password_state(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PasswordState)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents the current state of 2-step verification

pub fn payment_form(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PaymentForm)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about an invoice payment form

pub fn payment_receipt(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PaymentReceipt)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a successful payment

pub fn payment_result(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PaymentResult)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains the result of a payment request

pub fn phone_number_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PhoneNumberInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a phone number

pub fn proxies(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Proxies)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of proxy servers

pub fn proxy(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Proxy)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about a proxy server

pub fn push_receiver_id(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &PushReceiverId)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification

pub fn recommended_chat_filters(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &RecommendedChatFilters)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of recommended chat filters

pub fn recovery_email_address(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &RecoveryEmailAddress)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about the current recovery email address

pub fn scope_notification_settings(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ScopeNotificationSettings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about notification settings for several chats

pub fn seconds(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Seconds)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a value representing a number of seconds

pub fn secret_chat(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &SecretChat)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a secret chat

pub fn session(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Session)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about one session in a Telegram application used by the current user. Sessions should be shown to the user in the returned order

pub fn sessions(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Sessions)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of sessions

pub fn sticker_set(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &StickerSet)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a sticker set

pub fn sticker_sets(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &StickerSets)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of sticker sets

pub fn stickers(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Stickers)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of stickers

pub fn storage_statistics(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &StorageStatistics)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains the exact storage usage statistics split by chats and file type

pub fn storage_statistics_fast(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &StorageStatisticsFast)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains approximate storage usage statistics, excluding files of unknown file type

pub fn supergroup(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Supergroup)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn supergroup_full_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &SupergroupFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains full information about a supergroup or channel

pub fn t_me_urls(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TMeUrls)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of t.me URLs

pub fn temporary_password_state(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TemporaryPasswordState)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Returns information about the availability of a temporary password, which can be used for payments

pub fn test_bytes(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestBytes)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a sequence of bytes; for testing only

pub fn test_int(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestInt)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a number; for testing only

pub fn test_string(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestString)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a string; for testing only

pub fn test_vector_int(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestVectorInt)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a vector of numbers; for testing only

pub fn test_vector_int_object(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestVectorIntObject)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a vector of objects that hold a number; for testing only

pub fn test_vector_string(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestVectorString)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a vector of strings; for testing only

pub fn test_vector_string_object(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TestVectorStringObject)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a vector of objects that hold a string; for testing only

pub fn text(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Text)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains some text

pub fn text_entities(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &TextEntities)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of text entities

pub fn updates(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Updates)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of updates

pub fn user(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &User)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a user

pub fn user_full_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UserFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains full information about a user

pub fn user_privacy_setting_rules(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &UserPrivacySettingRules)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

pub fn users(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &Users)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of users

pub fn validated_order_info(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &ValidatedOrderInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a temporary identifier of validated order information, which is stored for one hour. Also contains the available shipping options

pub fn web_page(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &WebPage)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes a web page preview

pub fn web_page_instant_view(
    &self
) -> &Option<Arc<dyn Fn((&EventApi, &WebPageInstantView)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Describes an instant view page for a web page

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.