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

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 exception(
    &self
) -> &Option<Arc<dyn Fn((&Api, &TGError)) + Send + Sync + 'static>>
[src]

when telegram client throw exception

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

when receive data from tdlib

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

Does nothing and ensures that the Update object is used; for testing only

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

The user authorization state has changed

pub fn update_basic_group(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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 client

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

Some data from basicGroupFullInfo has been changed

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

New call was created or information about a call was updated

pub fn update_chat_default_disable_notification(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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_is_marked_as_unread(
    &self
) -> &Option<Arc<dyn Fn((&Api, &UpdateChatIsMarkedAsUnread)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat was marked as unread or was read

pub fn update_chat_is_pinned(
    &self
) -> &Option<Arc<dyn Fn((&Api, &UpdateChatIsPinned)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat was pinned or unpinned

pub fn update_chat_is_sponsored(
    &self
) -> &Option<Arc<dyn Fn((&Api, &UpdateChatIsSponsored)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A chat's is_sponsored field has changed

pub fn update_chat_last_message(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &UpdateChatNotificationSettings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Notification settings for a chat were changed

pub fn update_chat_order(
    &self
) -> &Option<Arc<dyn Fn((&Api, &UpdateChatOrder)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The order of the chat in the chats list has changed. Instead of this update updateChatLastMessage, updateChatIsPinned or updateChatDraftMessage might be sent

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

A chat photo was changed

pub fn update_chat_read_inbox(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &UpdateChatReadOutbox)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Outgoing messages were read

pub fn update_chat_reply_markup(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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((&Api, &UpdateChatUnreadMentionCount)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The chat unread_mention_count has changed

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

The connection state has changed

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

Some messages were deleted

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

The list of favorite stickers was updated

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

Information about a file was updated

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

The file generation process needs to be started by the client

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

File generation is no longer needed

pub fn update_installed_sticker_sets(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &UpdateLanguagePackStrings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some language pack strings have been updated

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

The message content has changed

pub fn update_message_content_opened(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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_mention_read(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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((&Api, &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((&Api, &UpdateMessageSendSucceeded)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A message has been successfully sent

pub fn update_message_views(
    &self
) -> &Option<Arc<dyn Fn((&Api, &UpdateMessageViews)) -> TGResult<()> + Send + Sync + 'static>>
[src]

The view count of the message has changed

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

A new incoming callback query; for bots only

pub fn update_new_chat(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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 client. The chat field changes will be reported through separate updates

pub fn update_new_chosen_inline_result(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &UpdateNewCustomEvent)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming event; for bots only

pub fn update_new_custom_query(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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((&Api, &UpdateNewInlineQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A new incoming inline query; for bots only

pub fn update_new_message(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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((&Api, &UpdateNewShippingQuery)) -> TGResult<()> + Send + Sync + 'static>>
[src]

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

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

An option changed its value

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

The list of recently used stickers was updated

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

The list of saved animations was updated

pub fn update_scope_notification_settings(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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 client

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

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

pub fn update_supergroup(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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 client

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

Some data from supergroupFullInfo has been changed

pub fn update_terms_of_service(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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 a message database is used

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

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

pub fn update_user(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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 client

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

User activity in the chat has changed

pub fn update_user_full_info(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &UpdateUserPrivacySettingRules)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Some privacy setting rules have been changed

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

The user went online or offline

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

Represents the current authorization state of the client

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

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

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

Represents the value of a string in a language pack

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

Represents the value of an option

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

Contains information about a Telegram Passport element

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

Contains notifications about data changes

pub fn account_ttl(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &Animations)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of animations

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

Information about the authentication code that was sent

pub fn basic_group(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &BasicGroupFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains full information about a basic group

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

Contains the call identifier

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

Contains a bot's answer to a callback query

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

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

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

Contains a list of chat events

Contains a chat invite link

Contains information about a chat invite link

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

A user with information about joining/leaving a chat

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

Contains a list of chat members

pub fn chat_report_spam_state(
    &self
) -> &Option<Arc<dyn Fn((&Api, &ChatReportSpamState)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about the availability of the "Report spam" action for a chat

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

Represents a list of chats

pub fn connected_websites(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &Count)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a counter

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

Contains the result of a custom request

Contains information about a tg:// deep link

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

Information about the email address authentication code that was sent

pub fn error(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &File)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a file

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

A text with some entities

pub fn found_messages(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &GameHighScores)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of game high scores

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

Contains a list of hashtags

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

Represents the result of an ImportContacts request

pub fn inline_query_results(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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_strings(
    &self
) -> &Option<Arc<dyn Fn((&Api, &LanguagePackStrings)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of language pack strings

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

Contains information about the current localization target

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

Describes a message

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

Contains a list of messages

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

A full list of available network statistic entries

pub fn ok(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &OrderInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Order information

pub fn passport_authorization_form(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &PassportElements)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains information about saved Telegram Passport elements

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

Represents the current state of 2-step verification

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

Contains information about an invoice payment form

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

Contains information about a successful payment

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

Contains the result of a payment request

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

Represents a list of proxy servers

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

Contains information about a proxy server

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

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

Contains information about the current recovery email address

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

Contains information about notification settings for several chats

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

Contains a value representing a number of seconds

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

Represents a secret chat

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

Contains a list of sessions

pub fn sticker_emojis(
    &self
) -> &Option<Arc<dyn Fn((&Api, &StickerEmojis)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Represents a list of all emoji corresponding to a sticker in a sticker set. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object

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

Represents a sticker set

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

Represents a list of sticker sets

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

Represents a list of stickers

pub fn storage_statistics(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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((&Api, &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((&Api, &SupergroupFullInfo)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains full information about a supergroup or channel

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

Contains a list of t.me URLs

pub fn temporary_password_state(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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((&Api, &TestInt)) -> TGResult<()> + Send + Sync + 'static>>
[src]

A simple object containing a number; for testing only

pub fn test_string(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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((&Api, &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((&Api, &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((&Api, &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((&Api, &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((&Api, &Text)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains some text

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

Contains a list of text entities

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

Represents a user

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

Contains full information about a user (except the full list of profile photos)

pub fn user_privacy_setting_rules(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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 user_profile_photos(
    &self
) -> &Option<Arc<dyn Fn((&Api, &UserProfilePhotos)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains part of the list of user photos

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

Represents a list of users

pub fn validated_order_info(
    &self
) -> &Option<Arc<dyn Fn((&Api, &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 wallpapers(
    &self
) -> &Option<Arc<dyn Fn((&Api, &Wallpapers)) -> TGResult<()> + Send + Sync + 'static>>
[src]

Contains a list of wallpapers

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

Describes a web page preview

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

Describes an instant view page for a web page

Auto Trait Implementations

impl !RefUnwindSafe for Lout

impl Send for Lout

impl Sync for Lout

impl Unpin for Lout

impl !UnwindSafe for Lout

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.