class TD::Client::Connection

Included Modules

Defined in:

telegram/client/connection.cr

Constructors

Instance Method Summary

Instance methods inherited from module TD::Functions

accept_call(call_id : Int32 | Nil = nil, protocol : TD::CallProtocol | Nil = nil) : Ok accept_call, accept_terms_of_service(terms_of_service_id : String | Nil = nil) : Ok accept_terms_of_service, add_chat_member(chat_id : Int64 | Nil = nil, user_id : Int64 | Nil = nil, forward_limit : Int32 | Nil = nil) : Ok add_chat_member, add_chat_members(chat_id : Int64 | Nil = nil, user_ids : Array(Int64) | Nil = nil) : Ok add_chat_members, add_chat_to_list(chat_id : Int64 | Nil = nil, chat_list : TD::ChatList | Nil = nil) : Ok add_chat_to_list, add_contact(contact : TD::Contact | Nil = nil, share_phone_number : Bool | Nil = nil) : Ok add_contact, add_custom_server_language_pack(language_pack_id : String | Nil = nil) : Ok add_custom_server_language_pack, add_favorite_sticker(sticker : TD::InputFile | Nil = nil) : Ok add_favorite_sticker, add_local_message(chat_id : Int64 | Nil = nil, sender_id : TD::MessageSender | Nil = nil, reply_to_message_id : Int64 | Nil = nil, disable_notification : Bool | Nil = nil, input_message_content : TD::InputMessageContent | Nil = nil) : Message add_local_message, add_log_message(verbosity_level : Int32 | Nil = nil, text : String | Nil = nil) : Ok add_log_message, add_network_statistics(entry : TD::NetworkStatisticsEntry | Nil = nil) : Ok add_network_statistics, add_proxy(server : String | Nil = nil, port : Int32 | Nil = nil, enable : Bool | Nil = nil, type : TD::ProxyType | Nil = nil) : Proxy add_proxy, add_recent_sticker(is_attached : Bool | Nil = nil, sticker : TD::InputFile | Nil = nil) : Stickers add_recent_sticker, add_recently_found_chat(chat_id : Int64 | Nil = nil) : Ok add_recently_found_chat, add_saved_animation(animation : TD::InputFile | Nil = nil) : Ok add_saved_animation, add_sticker_to_set(user_id : Int64 | Nil = nil, name : String | Nil = nil, sticker : TD::InputSticker | Nil = nil) : StickerSet add_sticker_to_set, answer_callback_query(callback_query_id : String | Nil = nil, text : String | Nil = nil, show_alert : Bool | Nil = nil, url : String | Nil = nil, cache_time : Int32 | Nil = nil) : Ok answer_callback_query, answer_custom_query(custom_query_id : String | Nil = nil, data : String | Nil = nil) : Ok answer_custom_query, answer_inline_query(inline_query_id : String | Nil = nil, is_personal : Bool | Nil = nil, results : Array(TD::InputInlineQueryResult) | Nil = nil, cache_time : Int32 | Nil = nil, next_offset : String | Nil = nil, switch_pm_text : String | Nil = nil, switch_pm_parameter : String | Nil = nil) : Ok answer_inline_query, answer_pre_checkout_query(pre_checkout_query_id : String | Nil = nil, error_message : String | Nil = nil) : Ok answer_pre_checkout_query, answer_shipping_query(shipping_query_id : String | Nil = nil, shipping_options : Array(TD::ShippingOption) | Nil = nil, error_message : String | Nil = nil) : Ok answer_shipping_query, ban_chat_member(chat_id : Int64 | Nil = nil, member_id : TD::MessageSender | Nil = nil, banned_until_date : Int32 | Nil = nil, revoke_messages : Bool | Nil = nil) : Ok ban_chat_member, block_message_sender_from_replies(message_id : Int64 | Nil = nil, delete_message : Bool | Nil = nil, delete_all_messages : Bool | Nil = nil, report_spam : Bool | Nil = nil) : Ok block_message_sender_from_replies, can_transfer_ownership : CanTransferOwnershipResult can_transfer_ownership, cancel_download_file(file_id : Int32 | Nil = nil, only_if_pending : Bool | Nil = nil) : Ok cancel_download_file, cancel_password_reset : Ok cancel_password_reset, cancel_upload_file(file_id : Int32 | Nil = nil) : Ok cancel_upload_file, change_imported_contacts(contacts : Array(TD::Contact) | Nil = nil) : ImportedContacts change_imported_contacts, change_phone_number(phone_number : String | Nil = nil, settings : TD::PhoneNumberAuthenticationSettings | Nil = nil) : AuthenticationCodeInfo change_phone_number, change_sticker_set(set_id : String | Nil = nil, is_installed : Bool | Nil = nil, is_archived : Bool | Nil = nil) : Ok change_sticker_set, check_authentication_bot_token(token : String | Nil = nil) : Ok check_authentication_bot_token, check_authentication_code(code : String | Nil = nil) : Ok check_authentication_code, check_authentication_password(password : String | Nil = nil) : Ok check_authentication_password, check_authentication_password_recovery_code(recovery_code : String | Nil = nil) : Ok check_authentication_password_recovery_code, check_change_phone_number_code(code : String | Nil = nil) : Ok check_change_phone_number_code, check_chat_invite_link(invite_link : String | Nil = nil) : ChatInviteLinkInfo check_chat_invite_link, check_chat_username(chat_id : Int64 | Nil = nil, username : String | Nil = nil) : CheckChatUsernameResult check_chat_username, check_created_public_chats_limit(type : TD::PublicChatType | Nil = nil) : Ok check_created_public_chats_limit, check_database_encryption_key(encryption_key : String | Nil = nil) : Ok check_database_encryption_key, check_email_address_verification_code(code : String | Nil = nil) : Ok check_email_address_verification_code, check_password_recovery_code(recovery_code : String | Nil = nil) : Ok check_password_recovery_code, check_phone_number_confirmation_code(code : String | Nil = nil) : Ok check_phone_number_confirmation_code, check_phone_number_verification_code(code : String | Nil = nil) : Ok check_phone_number_verification_code, check_recovery_email_address_code(code : String | Nil = nil) : PasswordState check_recovery_email_address_code, check_sticker_set_name(name : String | Nil = nil) : CheckStickerSetNameResult check_sticker_set_name, clean_file_name(file_name : String | Nil = nil) : Text clean_file_name, clear_all_draft_messages(exclude_secret_chats : Bool | Nil = nil) : Ok clear_all_draft_messages, clear_imported_contacts : Ok clear_imported_contacts, clear_recent_stickers(is_attached : Bool | Nil = nil) : Ok clear_recent_stickers, clear_recently_found_chats : Ok clear_recently_found_chats, click_animated_emoji_message(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Sticker click_animated_emoji_message, close : Ok close, close_chat(chat_id : Int64 | Nil = nil) : Ok close_chat, close_secret_chat(secret_chat_id : Int32 | Nil = nil) : Ok close_secret_chat, confirm_qr_code_authentication(link : String | Nil = nil) : Session confirm_qr_code_authentication, create_basic_group_chat(basic_group_id : Int64 | Nil = nil, force : Bool | Nil = nil) : Chat create_basic_group_chat, create_call(user_id : Int64 | Nil = nil, protocol : TD::CallProtocol | Nil = nil, is_video : Bool | Nil = nil) : CallId create_call, create_chat_filter(filter : TD::ChatFilter | Nil = nil) : ChatFilterInfo create_chat_filter, create_chat_invite_link(chat_id : Int64 | Nil = nil, name : String | Nil = nil, expiration_date : Int32 | Nil = nil, member_limit : Int32 | Nil = nil, creates_join_request : Bool | Nil = nil) : ChatInviteLink create_chat_invite_link, create_new_basic_group_chat(user_ids : Array(Int64) | Nil = nil, title : String | Nil = nil) : Chat create_new_basic_group_chat, create_new_secret_chat(user_id : Int64 | Nil = nil) : Chat create_new_secret_chat, create_new_sticker_set(user_id : Int64 | Nil = nil, title : String | Nil = nil, name : String | Nil = nil, is_masks : Bool | Nil = nil, stickers : Array(TD::InputSticker) | Nil = nil, source : String | Nil = nil) : StickerSet create_new_sticker_set, create_new_supergroup_chat(title : String | Nil = nil, is_channel : Bool | Nil = nil, description : String | Nil = nil, location : TD::ChatLocation | Nil = nil, for_import : Bool | Nil = nil) : Chat create_new_supergroup_chat, create_private_chat(user_id : Int64 | Nil = nil, force : Bool | Nil = nil) : Chat create_private_chat, create_secret_chat(secret_chat_id : Int32 | Nil = nil) : Chat create_secret_chat, create_supergroup_chat(supergroup_id : Int64 | Nil = nil, force : Bool | Nil = nil) : Chat create_supergroup_chat, create_temporary_password(password : String | Nil = nil, valid_for : Int32 | Nil = nil) : TemporaryPasswordState create_temporary_password, create_video_chat(chat_id : Int64 | Nil = nil, title : String | Nil = nil, start_date : Int32 | Nil = nil) : GroupCallId create_video_chat, delete_account(reason : String | Nil = nil) : Ok delete_account, delete_all_call_messages(revoke : Bool | Nil = nil) : Ok delete_all_call_messages, delete_all_revoked_chat_invite_links(chat_id : Int64 | Nil = nil, creator_user_id : Int64 | Nil = nil) : Ok delete_all_revoked_chat_invite_links, delete_chat(chat_id : Int64 | Nil = nil) : Ok delete_chat, delete_chat_filter(chat_filter_id : Int32 | Nil = nil) : Ok delete_chat_filter, delete_chat_history(chat_id : Int64 | Nil = nil, remove_from_chat_list : Bool | Nil = nil, revoke : Bool | Nil = nil) : Ok delete_chat_history, delete_chat_messages_by_date(chat_id : Int64 | Nil = nil, min_date : Int32 | Nil = nil, max_date : Int32 | Nil = nil, revoke : Bool | Nil = nil) : Ok delete_chat_messages_by_date, delete_chat_messages_by_sender(chat_id : Int64 | Nil = nil, sender_id : TD::MessageSender | Nil = nil) : Ok delete_chat_messages_by_sender, delete_chat_reply_markup(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Ok delete_chat_reply_markup, delete_commands(scope : TD::BotCommandScope | Nil = nil, language_code : String | Nil = nil) : Ok delete_commands, delete_file(file_id : Int32 | Nil = nil) : Ok delete_file, delete_language_pack(language_pack_id : String | Nil = nil) : Ok delete_language_pack, delete_messages(chat_id : Int64 | Nil = nil, message_ids : Array(Int64) | Nil = nil, revoke : Bool | Nil = nil) : Ok delete_messages, delete_passport_element(type : TD::PassportElementType | Nil = nil) : Ok delete_passport_element, delete_profile_photo(profile_photo_id : String | Nil = nil) : Ok delete_profile_photo, delete_revoked_chat_invite_link(chat_id : Int64 | Nil = nil, invite_link : String | Nil = nil) : Ok delete_revoked_chat_invite_link, delete_saved_credentials : Ok delete_saved_credentials, delete_saved_order_info : Ok delete_saved_order_info, destroy : Ok destroy, disable_proxy : Ok disable_proxy, discard_call(call_id : Int32 | Nil = nil, is_disconnected : Bool | Nil = nil, duration : Int32 | Nil = nil, is_video : Bool | Nil = nil, connection_id : String | Nil = nil) : Ok discard_call, disconnect_all_websites : Ok disconnect_all_websites, disconnect_website(website_id : String | Nil = nil) : Ok disconnect_website, download_file(file_id : Int32 | Nil = nil, priority : Int32 | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil, synchronous : Bool | Nil = nil) : File download_file, edit_chat_filter(chat_filter_id : Int32 | Nil = nil, filter : TD::ChatFilter | Nil = nil) : ChatFilterInfo edit_chat_filter, edit_chat_invite_link(chat_id : Int64 | Nil = nil, invite_link : String | Nil = nil, name : String | Nil = nil, expiration_date : Int32 | Nil = nil, member_limit : Int32 | Nil = nil, creates_join_request : Bool | Nil = nil) : ChatInviteLink edit_chat_invite_link, edit_custom_language_pack_info(info : TD::LanguagePackInfo | Nil = nil) : Ok edit_custom_language_pack_info, edit_inline_message_caption(inline_message_id : String | Nil = nil, reply_markup : TD::ReplyMarkup | Nil = nil, caption : TD::FormattedText | Nil = nil) : Ok edit_inline_message_caption, edit_inline_message_live_location(inline_message_id : String | Nil = nil, reply_markup : TD::ReplyMarkup | Nil = nil, location : TD::Location | Nil = nil, heading : Int32 | Nil = nil, proximity_alert_radius : Int32 | Nil = nil) : Ok edit_inline_message_live_location, edit_inline_message_media(inline_message_id : String | Nil = nil, reply_markup : TD::ReplyMarkup | Nil | Nil = nil, input_message_content : TD::InputMessageContent | Nil = nil) : Ok edit_inline_message_media, edit_inline_message_reply_markup(inline_message_id : String | Nil = nil, reply_markup : TD::ReplyMarkup | Nil = nil) : Ok edit_inline_message_reply_markup, edit_inline_message_text(inline_message_id : String | Nil = nil, reply_markup : TD::ReplyMarkup | Nil = nil, input_message_content : TD::InputMessageContent | Nil = nil) : Ok edit_inline_message_text, edit_message_caption(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, reply_markup : TD::ReplyMarkup | Nil | Nil = nil, caption : TD::FormattedText | Nil = nil) : Message edit_message_caption, edit_message_live_location(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, reply_markup : TD::ReplyMarkup | Nil | Nil = nil, location : TD::Location | Nil = nil, heading : Int32 | Nil = nil, proximity_alert_radius : Int32 | Nil = nil) : Message edit_message_live_location, edit_message_media(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, reply_markup : TD::ReplyMarkup | Nil | Nil = nil, input_message_content : TD::InputMessageContent | Nil = nil) : Message edit_message_media, edit_message_reply_markup(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, reply_markup : TD::ReplyMarkup | Nil = nil) : Message edit_message_reply_markup, edit_message_scheduling_state(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, scheduling_state : TD::MessageSchedulingState | Nil = nil) : Ok edit_message_scheduling_state, edit_message_text(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, reply_markup : TD::ReplyMarkup | Nil | Nil = nil, input_message_content : TD::InputMessageContent | Nil = nil) : Message edit_message_text, edit_proxy(proxy_id : Int32 | Nil = nil, server : String | Nil = nil, port : Int32 | Nil = nil, enable : Bool | Nil = nil, type : TD::ProxyType | Nil = nil) : Proxy edit_proxy, enable_proxy(proxy_id : Int32 | Nil = nil) : Ok enable_proxy, end_group_call(group_call_id : Int32 | Nil = nil) : Ok end_group_call, end_group_call_recording(group_call_id : Int32 | Nil = nil) : Ok end_group_call_recording, end_group_call_screen_sharing(group_call_id : Int32 | Nil = nil) : Ok end_group_call_screen_sharing, finish_file_generation(generation_id : String | Nil = nil, error : TD::Error | Nil = nil) : Ok finish_file_generation, forward_messages(chat_id : Int64 | Nil = nil, from_chat_id : Int64 | Nil = nil, message_ids : Array(Int64) | Nil = nil, options : TD::MessageSendOptions | Nil = nil, send_copy : Bool | Nil = nil, remove_caption : Bool | Nil = nil, only_preview : Bool | Nil = nil) : Messages forward_messages, get_account_ttl : AccountTtl get_account_ttl, get_active_live_location_messages : Messages get_active_live_location_messages, get_active_sessions : Sessions get_active_sessions, get_all_passport_elements(password : String | Nil = nil) : PassportElements get_all_passport_elements, get_animated_emoji(emoji : String | Nil = nil) : AnimatedEmoji get_animated_emoji, get_application_config : JsonValue get_application_config, get_application_download_link : HttpUrl get_application_download_link, get_archived_sticker_sets(is_masks : Bool | Nil = nil, offset_sticker_set_id : String | Nil = nil, limit : Int32 | Nil = nil) : StickerSets get_archived_sticker_sets, get_attached_sticker_sets(file_id : Int32 | Nil = nil) : StickerSets get_attached_sticker_sets, get_authorization_state : AuthorizationState get_authorization_state, get_auto_download_settings_presets : AutoDownloadSettingsPresets get_auto_download_settings_presets, get_background_url(name : String | Nil = nil, type : TD::BackgroundType | Nil = nil) : HttpUrl get_background_url, get_backgrounds(for_dark_theme : Bool | Nil = nil) : Backgrounds get_backgrounds, get_bank_card_info(bank_card_number : String | Nil = nil) : BankCardInfo get_bank_card_info, get_basic_group(basic_group_id : Int64 | Nil = nil) : BasicGroup get_basic_group, get_basic_group_full_info(basic_group_id : Int64 | Nil = nil) : BasicGroupFullInfo get_basic_group_full_info, get_blocked_message_senders(offset : Int32 | Nil = nil, limit : Int32 | Nil = nil) : MessageSenders get_blocked_message_senders, get_callback_query_answer(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, payload : TD::CallbackQueryPayload | Nil = nil) : CallbackQueryAnswer get_callback_query_answer, get_callback_query_message(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, callback_query_id : String | Nil = nil) : Message get_callback_query_message, get_chat(chat_id : Int64 | Nil = nil) : Chat get_chat, get_chat_administrators(chat_id : Int64 | Nil = nil) : ChatAdministrators get_chat_administrators, get_chat_available_message_senders(chat_id : Int64 | Nil = nil) : MessageSenders get_chat_available_message_senders, get_chat_event_log(chat_id : Int64 | Nil = nil, query : String | Nil = nil, from_event_id : String | Nil = nil, limit : Int32 | Nil = nil, filters : TD::ChatEventLogFilters | Nil = nil, user_ids : Array(Int64) | Nil = nil) : ChatEvents get_chat_event_log, get_chat_filter(chat_filter_id : Int32 | Nil = nil) : ChatFilter get_chat_filter, get_chat_filter_default_icon_name(filter : TD::ChatFilter | Nil = nil) : Text get_chat_filter_default_icon_name, get_chat_history(chat_id : Int64 | Nil = nil, from_message_id : Int64 | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil, only_local : Bool | Nil = nil) : Messages get_chat_history, get_chat_invite_link(chat_id : Int64 | Nil = nil, invite_link : String | Nil = nil) : ChatInviteLink get_chat_invite_link, get_chat_invite_link_counts(chat_id : Int64 | Nil = nil) : ChatInviteLinkCounts get_chat_invite_link_counts, get_chat_invite_link_members(chat_id : Int64 | Nil = nil, invite_link : String | Nil = nil, offset_member : TD::ChatInviteLinkMember | Nil = nil, limit : Int32 | Nil = nil) : ChatInviteLinkMembers get_chat_invite_link_members, get_chat_invite_links(chat_id : Int64 | Nil = nil, creator_user_id : Int64 | Nil = nil, is_revoked : Bool | Nil = nil, offset_date : Int32 | Nil = nil, offset_invite_link : String | Nil = nil, limit : Int32 | Nil = nil) : ChatInviteLinks get_chat_invite_links, get_chat_join_requests(chat_id : Int64 | Nil = nil, invite_link : String | Nil = nil, query : String | Nil = nil, offset_request : TD::ChatJoinRequest | Nil = nil, limit : Int32 | Nil = nil) : ChatJoinRequests get_chat_join_requests, get_chat_lists_to_add_chat(chat_id : Int64 | Nil = nil) : ChatLists get_chat_lists_to_add_chat, get_chat_member(chat_id : Int64 | Nil = nil, member_id : TD::MessageSender | Nil = nil) : ChatMember get_chat_member, get_chat_message_by_date(chat_id : Int64 | Nil = nil, date : Int32 | Nil = nil) : Message get_chat_message_by_date, get_chat_message_calendar(chat_id : Int64 | Nil = nil, filter : TD::SearchMessagesFilter | Nil = nil, from_message_id : Int64 | Nil = nil) : MessageCalendar get_chat_message_calendar, get_chat_message_count(chat_id : Int64 | Nil = nil, filter : TD::SearchMessagesFilter | Nil = nil, return_local : Bool | Nil = nil) : Count get_chat_message_count, get_chat_notification_settings_exceptions(scope : TD::NotificationSettingsScope | Nil = nil, compare_sound : Bool | Nil = nil) : Chats get_chat_notification_settings_exceptions, get_chat_pinned_message(chat_id : Int64 | Nil = nil) : Message get_chat_pinned_message, get_chat_scheduled_messages(chat_id : Int64 | Nil = nil) : Messages get_chat_scheduled_messages, get_chat_sparse_message_positions(chat_id : Int64 | Nil = nil, filter : TD::SearchMessagesFilter | Nil = nil, from_message_id : Int64 | Nil = nil, limit : Int32 | Nil = nil) : MessagePositions get_chat_sparse_message_positions, get_chat_sponsored_message(chat_id : Int64 | Nil = nil) : SponsoredMessage get_chat_sponsored_message, get_chat_statistics(chat_id : Int64 | Nil = nil, is_dark : Bool | Nil = nil) : ChatStatistics get_chat_statistics, get_chats(chat_list : TD::ChatList | Nil = nil, limit : Int32 | Nil = nil) : Chats get_chats, get_commands(scope : TD::BotCommandScope | Nil = nil, language_code : String | Nil = nil) : BotCommands get_commands, get_connected_websites : ConnectedWebsites get_connected_websites, get_contacts : Users get_contacts, get_countries : Countries get_countries, get_country_code : Text get_country_code, get_created_public_chats(type : TD::PublicChatType | Nil = nil) : Chats get_created_public_chats, get_current_state : Updates get_current_state, get_database_statistics : DatabaseStatistics get_database_statistics, get_deep_link_info(link : String | Nil = nil) : DeepLinkInfo get_deep_link_info, get_emoji_suggestions_url(language_code : String | Nil = nil) : HttpUrl get_emoji_suggestions_url, get_external_link(link : String | Nil = nil, allow_write_access : Bool | Nil = nil) : HttpUrl get_external_link, get_external_link_info(link : String | Nil = nil) : LoginUrlInfo get_external_link_info, get_favorite_stickers : Stickers get_favorite_stickers, get_file(file_id : Int32 | Nil = nil) : File get_file, get_file_downloaded_prefix_size(file_id : Int32 | Nil = nil, offset : Int32 | Nil = nil) : Count get_file_downloaded_prefix_size, get_file_extension(mime_type : String | Nil = nil) : Text get_file_extension, get_file_mime_type(file_name : String | Nil = nil) : Text get_file_mime_type, get_game_high_scores(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, user_id : Int64 | Nil = nil) : GameHighScores get_game_high_scores, get_group_call(group_call_id : Int32 | Nil = nil) : GroupCall get_group_call, get_group_call_invite_link(group_call_id : Int32 | Nil = nil, can_self_unmute : Bool | Nil = nil) : HttpUrl get_group_call_invite_link, get_group_call_stream_segment(group_call_id : Int32 | Nil = nil, time_offset : Int64 | Nil = nil, scale : Int32 | Nil = nil, channel_id : Int32 | Nil = nil, video_quality : TD::GroupCallVideoQuality | Nil = nil) : FilePart get_group_call_stream_segment, get_groups_in_common(user_id : Int64 | Nil = nil, offset_chat_id : Int64 | Nil = nil, limit : Int32 | Nil = nil) : Chats get_groups_in_common, get_imported_contact_count : Count get_imported_contact_count, get_inactive_supergroup_chats : Chats get_inactive_supergroup_chats, get_inline_game_high_scores(inline_message_id : String | Nil = nil, user_id : Int64 | Nil = nil) : GameHighScores get_inline_game_high_scores, get_inline_query_results(bot_user_id : Int64 | Nil = nil, chat_id : Int64 | Nil = nil, user_location : TD::Location | Nil = nil, query : String | Nil = nil, offset : String | Nil = nil) : InlineQueryResults get_inline_query_results, get_installed_sticker_sets(is_masks : Bool | Nil = nil) : StickerSets get_installed_sticker_sets, get_internal_link_type(link : String | Nil = nil) : InternalLinkType get_internal_link_type, get_json_string(json_value : TD::JsonValue | Nil = nil) : Text get_json_string, get_json_value(json : String | Nil = nil) : JsonValue get_json_value, get_language_pack_info(language_pack_id : String | Nil = nil) : LanguagePackInfo get_language_pack_info, get_language_pack_string(language_pack_database_path : String | Nil = nil, localization_target : String | Nil = nil, language_pack_id : String | Nil = nil, key : String | Nil = nil) : LanguagePackStringValue get_language_pack_string, get_language_pack_strings(language_pack_id : String | Nil = nil, keys : Array(String) | Nil = nil) : LanguagePackStrings get_language_pack_strings, get_localization_target_info(only_local : Bool | Nil = nil) : LocalizationTargetInfo get_localization_target_info, get_log_stream : LogStream get_log_stream, get_log_tag_verbosity_level(tag : String | Nil = nil) : LogVerbosityLevel get_log_tag_verbosity_level, get_log_tags : LogTags get_log_tags, get_log_verbosity_level : LogVerbosityLevel get_log_verbosity_level, get_login_url(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, button_id : Int64 | Nil = nil, allow_write_access : Bool | Nil = nil) : HttpUrl get_login_url, get_login_url_info(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, button_id : Int64 | Nil = nil) : LoginUrlInfo get_login_url_info, get_map_thumbnail_file(location : TD::Location | Nil = nil, zoom : Int32 | Nil = nil, width : Int32 | Nil = nil, height : Int32 | Nil = nil, scale : Int32 | Nil = nil, chat_id : Int64 | Nil = nil) : File get_map_thumbnail_file, get_markdown_text(text : TD::FormattedText | Nil = nil) : FormattedText get_markdown_text, get_me : User get_me, get_message(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Message get_message, get_message_embedding_code(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, for_album : Bool | Nil = nil) : Text get_message_embedding_code, get_message_file_type(message_file_head : String | Nil = nil) : MessageFileType get_message_file_type, get_message_import_confirmation_text(chat_id : Int64 | Nil = nil) : Text get_message_import_confirmation_text, get_message_link(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, media_timestamp : Int32 | Nil = nil, for_album : Bool | Nil = nil, for_comment : Bool | Nil = nil) : MessageLink get_message_link, get_message_link_info(url : String | Nil = nil) : MessageLinkInfo get_message_link_info, get_message_locally(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Message get_message_locally, get_message_public_forwards(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, offset : String | Nil = nil, limit : Int32 | Nil = nil) : FoundMessages get_message_public_forwards, get_message_statistics(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, is_dark : Bool | Nil = nil) : MessageStatistics get_message_statistics, get_message_thread(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : MessageThreadInfo get_message_thread, get_message_thread_history(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, from_message_id : Int64 | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil) : Messages get_message_thread_history, get_message_viewers(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Users get_message_viewers, get_messages(chat_id : Int64 | Nil = nil, message_ids : Array(Int64) | Nil = nil) : Messages get_messages, get_network_statistics(only_current : Bool | Nil = nil) : NetworkStatistics get_network_statistics, get_option(name : String | Nil = nil) : OptionValue get_option, get_passport_authorization_form(bot_user_id : Int64 | Nil = nil, scope : String | Nil = nil, public_key : String | Nil = nil, nonce : String | Nil = nil) : PassportAuthorizationForm get_passport_authorization_form, get_passport_authorization_form_available_elements(autorization_form_id : Int32 | Nil = nil, password : String | Nil = nil) : PassportElementsWithErrors get_passport_authorization_form_available_elements, get_passport_element(type : TD::PassportElementType | Nil = nil, password : String | Nil = nil) : PassportElement get_passport_element, get_password_state : PasswordState get_password_state, get_payment_form(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, theme : TD::PaymentFormTheme | Nil = nil) : PaymentForm get_payment_form, get_payment_receipt(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : PaymentReceipt get_payment_receipt, get_phone_number_info(phone_number_prefix : String | Nil = nil) : PhoneNumberInfo get_phone_number_info, get_phone_number_info_sync(language_code : String | Nil = nil, phone_number_prefix : String | Nil = nil) : PhoneNumberInfo get_phone_number_info_sync, get_poll_voters(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, option_id : Int32 | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil) : Users get_poll_voters, get_preferred_country_language(country_code : String | Nil = nil) : Text get_preferred_country_language, get_proxies : Proxies get_proxies, get_proxy_link(proxy_id : Int32 | Nil = nil) : HttpUrl get_proxy_link, get_push_receiver_id(payload : String | Nil = nil) : PushReceiverId get_push_receiver_id, get_recent_inline_bots : Users get_recent_inline_bots, get_recent_stickers(is_attached : Bool | Nil = nil) : Stickers get_recent_stickers, get_recently_opened_chats(limit : Int32 | Nil = nil) : Chats get_recently_opened_chats, get_recently_visited_t_me_urls(referrer : String | Nil = nil) : TMeUrls get_recently_visited_t_me_urls, get_recommended_chat_filters : RecommendedChatFilters get_recommended_chat_filters, get_recovery_email_address(password : String | Nil = nil) : RecoveryEmailAddress get_recovery_email_address, get_remote_file(remote_file_id : String | Nil = nil, file_type : TD::FileType | Nil = nil) : File get_remote_file, get_replied_message(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Message get_replied_message, get_saved_animations : Animations get_saved_animations, get_saved_order_info : OrderInfo get_saved_order_info, get_scope_notification_settings(scope : TD::NotificationSettingsScope | Nil = nil) : ScopeNotificationSettings get_scope_notification_settings, get_secret_chat(secret_chat_id : Int32 | Nil = nil) : SecretChat get_secret_chat, get_statistical_graph(chat_id : Int64 | Nil = nil, token : String | Nil = nil, x : Int64 | Nil = nil) : StatisticalGraph get_statistical_graph, get_sticker_emojis(sticker : TD::InputFile | Nil = nil) : Emojis get_sticker_emojis, get_sticker_set(set_id : String | Nil = nil) : StickerSet get_sticker_set, get_stickers(emoji : String | Nil = nil, limit : Int32 | Nil = nil) : Stickers get_stickers, get_storage_statistics(chat_limit : Int32 | Nil = nil) : StorageStatistics get_storage_statistics, get_storage_statistics_fast : StorageStatisticsFast get_storage_statistics_fast, get_suggested_file_name(file_id : Int32 | Nil = nil, directory : String | Nil = nil) : Text get_suggested_file_name, get_suggested_sticker_set_name(title : String | Nil = nil) : Text get_suggested_sticker_set_name, get_suitable_discussion_chats : Chats get_suitable_discussion_chats, get_supergroup(supergroup_id : Int64 | Nil = nil) : Supergroup get_supergroup, get_supergroup_full_info(supergroup_id : Int64 | Nil = nil) : SupergroupFullInfo get_supergroup_full_info, get_supergroup_members(supergroup_id : Int64 | Nil = nil, filter : TD::SupergroupMembersFilter | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil) : ChatMembers get_supergroup_members, get_support_user : User get_support_user, get_temporary_password_state : TemporaryPasswordState get_temporary_password_state, get_text_entities(text : String | Nil = nil) : TextEntities get_text_entities, get_top_chats(category : TD::TopChatCategory | Nil = nil, limit : Int32 | Nil = nil) : Chats get_top_chats, get_trending_sticker_sets(offset : Int32 | Nil = nil, limit : Int32 | Nil = nil) : StickerSets get_trending_sticker_sets, get_user(user_id : Int64 | Nil = nil) : User get_user, get_user_full_info(user_id : Int64 | Nil = nil) : UserFullInfo get_user_full_info, get_user_privacy_setting_rules(setting : TD::UserPrivacySetting | Nil = nil) : UserPrivacySettingRules get_user_privacy_setting_rules, get_user_profile_photos(user_id : Int64 | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil) : ChatPhotos get_user_profile_photos, get_video_chat_available_participants(chat_id : Int64 | Nil = nil) : MessageSenders get_video_chat_available_participants, get_web_page_instant_view(url : String | Nil = nil, force_full : Bool | Nil = nil) : WebPageInstantView get_web_page_instant_view, get_web_page_preview(text : TD::FormattedText | Nil = nil) : WebPage get_web_page_preview, hide_suggested_action(action : TD::SuggestedAction | Nil = nil) : Ok hide_suggested_action, import_contacts(contacts : Array(TD::Contact) | Nil = nil) : ImportedContacts import_contacts, import_messages(chat_id : Int64 | Nil = nil, message_file : TD::InputFile | Nil = nil, attached_files : Array(TD::InputFile) | Nil = nil) : Ok import_messages, invite_group_call_participants(group_call_id : Int32 | Nil = nil, user_ids : Array(Int64) | Nil = nil) : Ok invite_group_call_participants, join_chat(chat_id : Int64 | Nil = nil) : Ok join_chat, join_chat_by_invite_link(invite_link : String | Nil = nil) : Chat join_chat_by_invite_link, join_group_call(group_call_id : Int32 | Nil = nil, participant_id : TD::MessageSender | Nil = nil, audio_source_id : Int32 | Nil = nil, payload : String | Nil = nil, is_muted : Bool | Nil = nil, is_my_video_enabled : Bool | Nil = nil, invite_hash : String | Nil = nil) : Text join_group_call, leave_chat(chat_id : Int64 | Nil = nil) : Ok leave_chat, leave_group_call(group_call_id : Int32 | Nil = nil) : Ok leave_group_call, load_chats(chat_list : TD::ChatList | Nil = nil, limit : Int32 | Nil = nil) : Ok load_chats, load_group_call_participants(group_call_id : Int32 | Nil = nil, limit : Int32 | Nil = nil) : Ok load_group_call_participants, log_out : Ok log_out, open_chat(chat_id : Int64 | Nil = nil) : Ok open_chat, open_message_content(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Ok open_message_content, optimize_storage(size : Int64 | Nil = nil, ttl : Int32 | Nil = nil, count : Int32 | Nil = nil, immunity_delay : Int32 | Nil = nil, file_types : Array(TD::FileType) | Nil = nil, chat_ids : Array(Int64) | Nil = nil, exclude_chat_ids : Array(Int64) | Nil = nil, return_deleted_file_statistics : Bool | Nil = nil, chat_limit : Int32 | Nil = nil) : StorageStatistics optimize_storage, parse_markdown(text : TD::FormattedText | Nil = nil) : FormattedText parse_markdown, parse_text_entities(text : String | Nil = nil, parse_mode : TD::TextParseMode | Nil = nil) : FormattedText parse_text_entities, pin_chat_message(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, disable_notification : Bool | Nil = nil, only_for_self : Bool | Nil = nil) : Ok pin_chat_message, ping_proxy(proxy_id : Int32 | Nil = nil) : Seconds ping_proxy, process_chat_join_request(chat_id : Int64 | Nil = nil, user_id : Int64 | Nil = nil, approve : Bool | Nil = nil) : Ok process_chat_join_request, process_chat_join_requests(chat_id : Int64 | Nil = nil, invite_link : String | Nil = nil, approve : Bool | Nil = nil) : Ok process_chat_join_requests, process_push_notification(payload : String | Nil = nil) : Ok process_push_notification, read_all_chat_mentions(chat_id : Int64 | Nil = nil) : Ok read_all_chat_mentions, read_file_part(file_id : Int32 | Nil = nil, offset : Int32 | Nil = nil, count : Int32 | Nil = nil) : FilePart read_file_part, recover_authentication_password(recovery_code : String | Nil = nil, new_password : String | Nil = nil, new_hint : String | Nil = nil) : Ok recover_authentication_password, recover_password(recovery_code : String | Nil = nil, new_password : String | Nil = nil, new_hint : String | Nil = nil) : PasswordState recover_password, register_device(device_token : TD::DeviceToken | Nil = nil, other_user_ids : Array(Int64) | Nil = nil) : PushReceiverId register_device, register_user(first_name : String | Nil = nil, last_name : String | Nil = nil) : Ok register_user, remove_background(background_id : String | Nil = nil) : Ok remove_background, remove_chat_action_bar(chat_id : Int64 | Nil = nil) : Ok remove_chat_action_bar, remove_contacts(user_ids : Array(Int64) | Nil = nil) : Ok remove_contacts, remove_favorite_sticker(sticker : TD::InputFile | Nil = nil) : Ok remove_favorite_sticker, remove_notification(notification_group_id : Int32 | Nil = nil, notification_id : Int32 | Nil = nil) : Ok remove_notification, remove_notification_group(notification_group_id : Int32 | Nil = nil, max_notification_id : Int32 | Nil = nil) : Ok remove_notification_group, remove_proxy(proxy_id : Int32 | Nil = nil) : Ok remove_proxy, remove_recent_hashtag(hashtag : String | Nil = nil) : Ok remove_recent_hashtag, remove_recent_sticker(is_attached : Bool | Nil = nil, sticker : TD::InputFile | Nil = nil) : Ok remove_recent_sticker, remove_recently_found_chat(chat_id : Int64 | Nil = nil) : Ok remove_recently_found_chat, remove_saved_animation(animation : TD::InputFile | Nil = nil) : Ok remove_saved_animation, remove_sticker_from_set(sticker : TD::InputFile | Nil = nil) : Ok remove_sticker_from_set, remove_top_chat(category : TD::TopChatCategory | Nil = nil, chat_id : Int64 | Nil = nil) : Ok remove_top_chat, reorder_chat_filters(chat_filter_ids : Array(Int32) | Nil = nil) : Ok reorder_chat_filters, reorder_installed_sticker_sets(is_masks : Bool | Nil = nil, sticker_set_ids : Array(String) | Nil = nil) : Ok reorder_installed_sticker_sets, replace_primary_chat_invite_link(chat_id : Int64 | Nil = nil) : ChatInviteLink replace_primary_chat_invite_link, report_chat(chat_id : Int64 | Nil = nil, message_ids : Array(Int64) | Nil = nil, reason : TD::ChatReportReason | Nil = nil, text : String | Nil = nil) : Ok report_chat, report_chat_photo(chat_id : Int64 | Nil = nil, file_id : Int32 | Nil = nil, reason : TD::ChatReportReason | Nil = nil, text : String | Nil = nil) : Ok report_chat_photo, report_supergroup_spam(supergroup_id : Int64 | Nil = nil, message_ids : Array(Int64) | Nil = nil) : Ok report_supergroup_spam, request_authentication_password_recovery : Ok request_authentication_password_recovery, request_password_recovery : EmailAddressAuthenticationCodeInfo request_password_recovery, request_qr_code_authentication(other_user_ids : Array(Int64) | Nil = nil) : Ok request_qr_code_authentication, resend_authentication_code : Ok resend_authentication_code, resend_change_phone_number_code : AuthenticationCodeInfo resend_change_phone_number_code, resend_email_address_verification_code : EmailAddressAuthenticationCodeInfo resend_email_address_verification_code, resend_messages(chat_id : Int64 | Nil = nil, message_ids : Array(Int64) | Nil = nil) : Messages resend_messages, resend_phone_number_confirmation_code : AuthenticationCodeInfo resend_phone_number_confirmation_code, resend_phone_number_verification_code : AuthenticationCodeInfo resend_phone_number_verification_code, resend_recovery_email_address_code : PasswordState resend_recovery_email_address_code, reset_all_notification_settings : Ok reset_all_notification_settings, reset_backgrounds : Ok reset_backgrounds, reset_network_statistics : Ok reset_network_statistics, reset_password : ResetPasswordResult reset_password, revoke_chat_invite_link(chat_id : Int64 | Nil = nil, invite_link : String | Nil = nil) : ChatInviteLinks revoke_chat_invite_link, revoke_group_call_invite_link(group_call_id : Int32 | Nil = nil) : Ok revoke_group_call_invite_link, save_application_log_event(type : String | Nil = nil, chat_id : Int64 | Nil = nil, data : TD::JsonValue | Nil = nil) : Ok save_application_log_event, search_background(name : String | Nil = nil) : Background search_background, search_call_messages(from_message_id : Int64 | Nil = nil, limit : Int32 | Nil = nil, only_missed : Bool | Nil = nil) : Messages search_call_messages, search_chat_members(chat_id : Int64 | Nil = nil, query : String | Nil = nil, limit : Int32 | Nil = nil, filter : TD::ChatMembersFilter | Nil = nil) : ChatMembers search_chat_members, search_chat_messages(chat_id : Int64 | Nil = nil, query : String | Nil = nil, sender_id : TD::MessageSender | Nil = nil, from_message_id : Int64 | Nil = nil, offset : Int32 | Nil = nil, limit : Int32 | Nil = nil, filter : TD::SearchMessagesFilter | Nil = nil, message_thread_id : Int64 | Nil = nil) : Messages search_chat_messages, search_chat_recent_location_messages(chat_id : Int64 | Nil = nil, limit : Int32 | Nil = nil) : Messages search_chat_recent_location_messages, search_chats(query : String | Nil = nil, limit : Int32 | Nil = nil) : Chats search_chats, search_chats_nearby(location : TD::Location | Nil = nil) : ChatsNearby search_chats_nearby, search_chats_on_server(query : String | Nil = nil, limit : Int32 | Nil = nil) : Chats search_chats_on_server, search_contacts(query : String | Nil = nil, limit : Int32 | Nil = nil) : Users search_contacts, search_emojis(text : String | Nil = nil, exact_match : Bool | Nil = nil, input_language_codes : Array(String) | Nil = nil) : Emojis search_emojis, search_hashtags(prefix : String | Nil = nil, limit : Int32 | Nil = nil) : Hashtags search_hashtags, search_installed_sticker_sets(is_masks : Bool | Nil = nil, query : String | Nil = nil, limit : Int32 | Nil = nil) : StickerSets search_installed_sticker_sets, search_messages(chat_list : TD::ChatList | Nil = nil, query : String | Nil = nil, offset_date : Int32 | Nil = nil, offset_chat_id : Int64 | Nil = nil, offset_message_id : Int64 | Nil = nil, limit : Int32 | Nil = nil, filter : TD::SearchMessagesFilter | Nil = nil, min_date : Int32 | Nil = nil, max_date : Int32 | Nil = nil) : Messages search_messages, search_public_chat(username : String | Nil = nil) : Chat search_public_chat, search_public_chats(query : String | Nil = nil) : Chats search_public_chats, search_secret_messages(chat_id : Int64 | Nil = nil, query : String | Nil = nil, offset : String | Nil = nil, limit : Int32 | Nil = nil, filter : TD::SearchMessagesFilter | Nil = nil) : FoundMessages search_secret_messages, search_sticker_set(name : String | Nil = nil) : StickerSet search_sticker_set, search_sticker_sets(query : String | Nil = nil) : StickerSets search_sticker_sets, search_stickers(emoji : String | Nil = nil, limit : Int32 | Nil = nil) : Stickers search_stickers, send_bot_start_message(bot_user_id : Int64 | Nil = nil, chat_id : Int64 | Nil = nil, parameter : String | Nil = nil) : Message send_bot_start_message, send_call_debug_information(call_id : Int32 | Nil = nil, debug_information : String | Nil = nil) : Ok send_call_debug_information, send_call_rating(call_id : Int32 | Nil = nil, rating : Int32 | Nil = nil, comment : String | Nil = nil, problems : Array(TD::CallProblem) | Nil = nil) : Ok send_call_rating, send_call_signaling_data(call_id : Int32 | Nil = nil, data : String | Nil = nil) : Ok send_call_signaling_data, send_chat_action(chat_id : Int64 | Nil = nil, message_thread_id : Int64 | Nil = nil, action : TD::ChatAction | Nil = nil) : Ok send_chat_action, send_chat_screenshot_taken_notification(chat_id : Int64 | Nil = nil) : Ok send_chat_screenshot_taken_notification, send_custom_request(method : String | Nil = nil, parameters : String | Nil = nil) : CustomRequestResult send_custom_request, send_email_address_verification_code(email_address : String | Nil = nil) : EmailAddressAuthenticationCodeInfo send_email_address_verification_code, send_inline_query_result_message(chat_id : Int64 | Nil = nil, message_thread_id : Int64 | Nil = nil, reply_to_message_id : Int64 | Nil = nil, options : TD::MessageSendOptions | Nil = nil, query_id : String | Nil = nil, result_id : String | Nil = nil, hide_via_bot : Bool | Nil = nil) : Message send_inline_query_result_message, send_message(chat_id : Int64 | Nil = nil, message_thread_id : Int64 | Nil = nil, reply_to_message_id : Int64 | Nil = nil, options : TD::MessageSendOptions | Nil = nil, reply_markup : TD::ReplyMarkup | Nil | Nil = nil, input_message_content : TD::InputMessageContent | Nil = nil) : Message send_message, send_message_album(chat_id : Int64 | Nil = nil, message_thread_id : Int64 | Nil = nil, reply_to_message_id : Int64 | Nil = nil, options : TD::MessageSendOptions | Nil = nil, input_message_contents : Array(TD::InputMessageContent) | Nil = nil) : Messages send_message_album, send_passport_authorization_form(autorization_form_id : Int32 | Nil = nil, types : Array(TD::PassportElementType) | Nil = nil) : Ok send_passport_authorization_form, send_payment_form(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, payment_form_id : String | Nil = nil, order_info_id : String | Nil = nil, shipping_option_id : String | Nil | Nil = nil, credentials : TD::InputCredentials | Nil = nil, tip_amount : Int64 | Nil = nil) : PaymentResult send_payment_form, send_phone_number_confirmation_code(hash : String | Nil = nil, phone_number : String | Nil = nil, settings : TD::PhoneNumberAuthenticationSettings | Nil = nil) : AuthenticationCodeInfo send_phone_number_confirmation_code, send_phone_number_verification_code(phone_number : String | Nil = nil, settings : TD::PhoneNumberAuthenticationSettings | Nil = nil) : AuthenticationCodeInfo send_phone_number_verification_code, set_account_ttl(ttl : TD::AccountTtl | Nil = nil) : Ok set_account_ttl, set_alarm(seconds : Float64 | Nil = nil) : Ok set_alarm, set_authentication_phone_number(phone_number : String | Nil = nil, settings : TD::PhoneNumberAuthenticationSettings | Nil = nil) : Ok set_authentication_phone_number, set_auto_download_settings(settings : TD::AutoDownloadSettings | Nil = nil, type : TD::NetworkType | Nil = nil) : Ok set_auto_download_settings, set_background(background : TD::InputBackground | Nil = nil, type : TD::BackgroundType | Nil = nil, for_dark_theme : Bool | Nil = nil) : Background set_background, set_bio(bio : String | Nil = nil) : Ok set_bio, set_bot_updates_status(pending_update_count : Int32 | Nil = nil, error_message : String | Nil = nil) : Ok set_bot_updates_status, set_chat_client_data(chat_id : Int64 | Nil = nil, client_data : String | Nil = nil) : Ok set_chat_client_data, set_chat_description(chat_id : Int64 | Nil = nil, description : String | Nil = nil) : Ok set_chat_description, set_chat_discussion_group(chat_id : Int64 | Nil = nil, discussion_chat_id : Int64 | Nil = nil) : Ok set_chat_discussion_group, set_chat_draft_message(chat_id : Int64 | Nil = nil, message_thread_id : Int64 | Nil = nil, draft_message : TD::DraftMessage | Nil = nil) : Ok set_chat_draft_message, set_chat_location(chat_id : Int64 | Nil = nil, location : TD::ChatLocation | Nil = nil) : Ok set_chat_location, set_chat_member_status(chat_id : Int64 | Nil = nil, member_id : TD::MessageSender | Nil = nil, status : TD::ChatMemberStatus | Nil = nil) : Ok set_chat_member_status, set_chat_message_sender(chat_id : Int64 | Nil = nil, message_sender_id : TD::MessageSender | Nil = nil) : Ok set_chat_message_sender, set_chat_message_ttl(chat_id : Int64 | Nil = nil, ttl : Int32 | Nil = nil) : Ok set_chat_message_ttl, set_chat_notification_settings(chat_id : Int64 | Nil = nil, notification_settings : TD::ChatNotificationSettings | Nil = nil) : Ok set_chat_notification_settings, set_chat_permissions(chat_id : Int64 | Nil = nil, permissions : TD::ChatPermissions | Nil = nil) : Ok set_chat_permissions, set_chat_photo(chat_id : Int64 | Nil = nil, photo : TD::InputChatPhoto | Nil = nil) : Ok set_chat_photo, set_chat_slow_mode_delay(chat_id : Int64 | Nil = nil, slow_mode_delay : Int32 | Nil = nil) : Ok set_chat_slow_mode_delay, set_chat_theme(chat_id : Int64 | Nil = nil, theme_name : String | Nil = nil) : Ok set_chat_theme, set_chat_title(chat_id : Int64 | Nil = nil, title : String | Nil = nil) : Ok set_chat_title, set_commands(scope : TD::BotCommandScope | Nil = nil, language_code : String | Nil = nil, commands : Array(TD::BotCommand) | Nil = nil) : Ok set_commands, set_custom_language_pack(info : TD::LanguagePackInfo | Nil = nil, strings : Array(TD::LanguagePackString) | Nil = nil) : Ok set_custom_language_pack, set_custom_language_pack_string(language_pack_id : String | Nil = nil, new_string : TD::LanguagePackString | Nil = nil) : Ok set_custom_language_pack_string, set_database_encryption_key(new_encryption_key : String | Nil = nil) : Ok set_database_encryption_key, set_file_generation_progress(generation_id : String | Nil = nil, expected_size : Int32 | Nil = nil, local_prefix_size : Int32 | Nil = nil) : Ok set_file_generation_progress, set_game_score(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, edit_message : Bool | Nil = nil, user_id : Int64 | Nil = nil, score : Int32 | Nil = nil, force : Bool | Nil = nil) : Message set_game_score, set_group_call_participant_is_speaking(group_call_id : Int32 | Nil = nil, audio_source : Int32 | Nil = nil, is_speaking : Bool | Nil = nil) : Ok set_group_call_participant_is_speaking, set_group_call_participant_volume_level(group_call_id : Int32 | Nil = nil, participant_id : TD::MessageSender | Nil = nil, volume_level : Int32 | Nil = nil) : Ok set_group_call_participant_volume_level, set_group_call_title(group_call_id : Int32 | Nil = nil, title : String | Nil = nil) : Ok set_group_call_title, set_inactive_session_ttl(inactive_session_ttl_days : Int32 | Nil = nil) : Ok set_inactive_session_ttl, set_inline_game_score(inline_message_id : String | Nil = nil, edit_message : Bool | Nil = nil, user_id : Int64 | Nil = nil, score : Int32 | Nil = nil, force : Bool | Nil = nil) : Ok set_inline_game_score, set_location(location : TD::Location | Nil = nil) : Ok set_location, set_log_stream(log_stream : TD::LogStream | Nil = nil) : Ok set_log_stream, set_log_tag_verbosity_level(tag : String | Nil = nil, new_verbosity_level : Int32 | Nil = nil) : Ok set_log_tag_verbosity_level, set_log_verbosity_level(new_verbosity_level : Int32 | Nil = nil) : Ok set_log_verbosity_level, set_name(first_name : String | Nil = nil, last_name : String | Nil = nil) : Ok set_name, set_network_type(type : TD::NetworkType | Nil = nil) : Ok set_network_type, set_option(name : String | Nil = nil, value : TD::OptionValue | Nil = nil) : Ok set_option, set_passport_element(element : TD::InputPassportElement | Nil = nil, password : String | Nil = nil) : PassportElement set_passport_element, set_passport_element_errors(user_id : Int64 | Nil = nil, errors : Array(TD::InputPassportElementError) | Nil = nil) : Ok set_passport_element_errors, set_password(old_password : String | Nil = nil, new_password : String | Nil = nil, new_hint : String | Nil = nil, set_recovery_email_address : Bool | Nil = nil, new_recovery_email_address : String | Nil = nil) : PasswordState set_password, set_pinned_chats(chat_list : TD::ChatList | Nil = nil, chat_ids : Array(Int64) | Nil = nil) : Ok set_pinned_chats, set_poll_answer(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, option_ids : Array(Int32) | Nil = nil) : Ok set_poll_answer, set_profile_photo(photo : TD::InputChatPhoto | Nil = nil) : Ok set_profile_photo, set_recovery_email_address(password : String | Nil = nil, new_recovery_email_address : String | Nil = nil) : PasswordState set_recovery_email_address, set_scope_notification_settings(scope : TD::NotificationSettingsScope | Nil = nil, notification_settings : TD::ScopeNotificationSettings | Nil = nil) : Ok set_scope_notification_settings, set_sticker_position_in_set(sticker : TD::InputFile | Nil = nil, position : Int32 | Nil = nil) : Ok set_sticker_position_in_set, set_sticker_set_thumbnail(user_id : Int64 | Nil = nil, name : String | Nil = nil, thumbnail : TD::InputFile | Nil = nil) : StickerSet set_sticker_set_thumbnail, set_supergroup_sticker_set(supergroup_id : Int64 | Nil = nil, sticker_set_id : String | Nil = nil) : Ok set_supergroup_sticker_set, set_supergroup_username(supergroup_id : Int64 | Nil = nil, username : String | Nil = nil) : Ok set_supergroup_username, set_tdlib_parameters(parameters : TD::TdlibParameters | Nil = nil) : Ok set_tdlib_parameters, set_user_privacy_setting_rules(setting : TD::UserPrivacySetting | Nil = nil, rules : TD::UserPrivacySettingRules | Nil = nil) : Ok set_user_privacy_setting_rules, set_username(username : String | Nil = nil) : Ok set_username, set_video_chat_default_participant(chat_id : Int64 | Nil = nil, default_participant_id : TD::MessageSender | Nil = nil) : Ok set_video_chat_default_participant, share_phone_number(user_id : Int64 | Nil = nil) : Ok share_phone_number, start_group_call_recording(group_call_id : Int32 | Nil = nil, title : String | Nil = nil, record_video : Bool | Nil = nil, use_portrait_orientation : Bool | Nil = nil) : Ok start_group_call_recording, start_group_call_screen_sharing(group_call_id : Int32 | Nil = nil, audio_source_id : Int32 | Nil = nil, payload : String | Nil = nil) : Text start_group_call_screen_sharing, start_scheduled_group_call(group_call_id : Int32 | Nil = nil) : Ok start_scheduled_group_call, stop_poll(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, reply_markup : TD::ReplyMarkup | Nil | Nil = nil) : Ok stop_poll, synchronize_language_pack(language_pack_id : String | Nil = nil) : Ok synchronize_language_pack, terminate_all_other_sessions : Ok terminate_all_other_sessions, terminate_session(session_id : String | Nil = nil) : Ok terminate_session, test_call_bytes(x : String | Nil = nil) : TestBytes test_call_bytes, test_call_empty : Ok test_call_empty, test_call_string(x : String | Nil = nil) : TestString test_call_string, test_call_vector_int(x : Array(Int32) | Nil = nil) : TestVectorInt test_call_vector_int, test_call_vector_int_object(x : Array(TD::TestInt) | Nil = nil) : TestVectorIntObject test_call_vector_int_object, test_call_vector_string(x : Array(String) | Nil = nil) : TestVectorString test_call_vector_string, test_call_vector_string_object(x : Array(TD::TestString) | Nil = nil) : TestVectorStringObject test_call_vector_string_object, test_get_difference : Ok test_get_difference, test_network : Ok test_network, test_proxy(server : String | Nil = nil, port : Int32 | Nil = nil, type : TD::ProxyType | Nil = nil, dc_id : Int32 | Nil = nil, timeout : Float64 | Nil = nil) : Ok test_proxy, test_return_error(error : TD::Error | Nil = nil) : Error test_return_error, test_square_int(x : Int32 | Nil = nil) : TestInt test_square_int, test_use_update : Update test_use_update, toggle_chat_default_disable_notification(chat_id : Int64 | Nil = nil, default_disable_notification : Bool | Nil = nil) : Ok toggle_chat_default_disable_notification, toggle_chat_has_protected_content(chat_id : Int64 | Nil = nil, has_protected_content : Bool | Nil = nil) : Ok toggle_chat_has_protected_content, toggle_chat_is_marked_as_unread(chat_id : Int64 | Nil = nil, is_marked_as_unread : Bool | Nil = nil) : Ok toggle_chat_is_marked_as_unread, toggle_chat_is_pinned(chat_list : TD::ChatList | Nil = nil, chat_id : Int64 | Nil = nil, is_pinned : Bool | Nil = nil) : Ok toggle_chat_is_pinned, toggle_group_call_enabled_start_notification(group_call_id : Int32 | Nil = nil, enabled_start_notification : Bool | Nil = nil) : Ok toggle_group_call_enabled_start_notification, toggle_group_call_is_my_video_enabled(group_call_id : Int32 | Nil = nil, is_my_video_enabled : Bool | Nil = nil) : Ok toggle_group_call_is_my_video_enabled, toggle_group_call_is_my_video_paused(group_call_id : Int32 | Nil = nil, is_my_video_paused : Bool | Nil = nil) : Ok toggle_group_call_is_my_video_paused, toggle_group_call_mute_new_participants(group_call_id : Int32 | Nil = nil, mute_new_participants : Bool | Nil = nil) : Ok toggle_group_call_mute_new_participants, toggle_group_call_participant_is_hand_raised(group_call_id : Int32 | Nil = nil, participant_id : TD::MessageSender | Nil = nil, is_hand_raised : Bool | Nil = nil) : Ok toggle_group_call_participant_is_hand_raised, toggle_group_call_participant_is_muted(group_call_id : Int32 | Nil = nil, participant_id : TD::MessageSender | Nil = nil, is_muted : Bool | Nil = nil) : Ok toggle_group_call_participant_is_muted, toggle_group_call_screen_sharing_is_paused(group_call_id : Int32 | Nil = nil, is_paused : Bool | Nil = nil) : Ok toggle_group_call_screen_sharing_is_paused, toggle_message_sender_is_blocked(sender_id : TD::MessageSender | Nil = nil, is_blocked : Bool | Nil = nil) : Ok toggle_message_sender_is_blocked, toggle_session_can_accept_calls(session_id : String | Nil = nil, can_accept_calls : Bool | Nil = nil) : Ok toggle_session_can_accept_calls, toggle_session_can_accept_secret_chats(session_id : String | Nil = nil, can_accept_secret_chats : Bool | Nil = nil) : Ok toggle_session_can_accept_secret_chats, toggle_supergroup_is_all_history_available(supergroup_id : Int64 | Nil = nil, is_all_history_available : Bool | Nil = nil) : Ok toggle_supergroup_is_all_history_available, toggle_supergroup_is_broadcast_group(supergroup_id : Int64 | Nil = nil) : Ok toggle_supergroup_is_broadcast_group, toggle_supergroup_sign_messages(supergroup_id : Int64 | Nil = nil, sign_messages : Bool | Nil = nil) : Ok toggle_supergroup_sign_messages, transfer_chat_ownership(chat_id : Int64 | Nil = nil, user_id : Int64 | Nil = nil, password : String | Nil = nil) : Ok transfer_chat_ownership, unpin_all_chat_messages(chat_id : Int64 | Nil = nil) : Ok unpin_all_chat_messages, unpin_chat_message(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil) : Ok unpin_chat_message, upgrade_basic_group_chat_to_supergroup_chat(chat_id : Int64 | Nil = nil) : Chat upgrade_basic_group_chat_to_supergroup_chat, upload_file(file : TD::InputFile | Nil = nil, file_type : TD::FileType | Nil = nil, priority : Int32 | Nil = nil) : File upload_file, upload_sticker_file(user_id : Int64 | Nil = nil, sticker : TD::InputSticker | Nil = nil) : File upload_sticker_file, validate_order_info(chat_id : Int64 | Nil = nil, message_id : Int64 | Nil = nil, order_info : TD::OrderInfo | Nil = nil, allow_save : Bool | Nil = nil) : ValidatedOrderInfo validate_order_info, view_messages(chat_id : Int64 | Nil = nil, message_thread_id : Int64 | Nil = nil, message_ids : Array(Int64) | Nil = nil, force_read : Bool | Nil = nil) : Ok view_messages, view_trending_sticker_sets(sticker_set_ids : Array(String) | Nil = nil) : Ok view_trending_sticker_sets, write_generated_file_part(generation_id : String | Nil = nil, offset : Int32 | Nil = nil, data : String | Nil = nil) : Ok write_generated_file_part

Constructor Detail

def self.new(client : TD::Client) #

[View source]

Instance Method Detail

def client : TD::Client #

[View source]
def config #

[View source]
def destroy! #

[View source]
def receive(wait : Int32 = 0) #

[View source]
def send(json : String, timeout : Int32 = config.request_timeout) #

[View source]
def status : TD::AuthorizationState #

[View source]