tdlib-schema 1.7.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/main.yml +16 -0
- data/.gitignore +15 -0
- data/.gitmodules +3 -0
- data/.rspec +3 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +33 -0
- data/Rakefile +8 -0
- data/bin/console +15 -0
- data/bin/parser +466 -0
- data/bin/setup +8 -0
- data/lib/tdlib-schema.rb +3 -0
- data/lib/tdlib/client_methods.rb +5144 -0
- data/lib/tdlib/td.rb +2 -0
- data/lib/tdlib/types.rb +1293 -0
- data/lib/tdlib/types/account_ttl.rb +10 -0
- data/lib/tdlib/types/address.rb +18 -0
- data/lib/tdlib/types/animated_chat_photo.rb +12 -0
- data/lib/tdlib/types/animation.rb +26 -0
- data/lib/tdlib/types/animations.rb +8 -0
- data/lib/tdlib/types/audio.rb +25 -0
- data/lib/tdlib/types/authentication_code_info.rb +15 -0
- data/lib/tdlib/types/authentication_code_type.rb +13 -0
- data/lib/tdlib/types/authentication_code_type/call.rb +8 -0
- data/lib/tdlib/types/authentication_code_type/flash_call.rb +9 -0
- data/lib/tdlib/types/authentication_code_type/sms.rb +8 -0
- data/lib/tdlib/types/authentication_code_type/telegram_message.rb +9 -0
- data/lib/tdlib/types/authorization_state.rb +20 -0
- data/lib/tdlib/types/authorization_state/closed.rb +9 -0
- data/lib/tdlib/types/authorization_state/closing.rb +7 -0
- data/lib/tdlib/types/authorization_state/logging_out.rb +5 -0
- data/lib/tdlib/types/authorization_state/ready.rb +6 -0
- data/lib/tdlib/types/authorization_state/wait_code.rb +8 -0
- data/lib/tdlib/types/authorization_state/wait_encryption_key.rb +8 -0
- data/lib/tdlib/types/authorization_state/wait_other_device_confirmation.rb +9 -0
- data/lib/tdlib/types/authorization_state/wait_password.rb +13 -0
- data/lib/tdlib/types/authorization_state/wait_phone_number.rb +7 -0
- data/lib/tdlib/types/authorization_state/wait_registration.rb +9 -0
- data/lib/tdlib/types/authorization_state/wait_tdlib_parameters.rb +5 -0
- data/lib/tdlib/types/auto_download_settings.rb +24 -0
- data/lib/tdlib/types/auto_download_settings_presets.rb +15 -0
- data/lib/tdlib/types/background.rb +19 -0
- data/lib/tdlib/types/background_fill.rb +11 -0
- data/lib/tdlib/types/background_fill/gradient.rb +13 -0
- data/lib/tdlib/types/background_fill/solid.rb +8 -0
- data/lib/tdlib/types/background_type.rb +12 -0
- data/lib/tdlib/types/background_type/fill.rb +8 -0
- data/lib/tdlib/types/background_type/pattern.rb +13 -0
- data/lib/tdlib/types/background_type/wallpaper.rb +11 -0
- data/lib/tdlib/types/backgrounds.rb +8 -0
- data/lib/tdlib/types/bank_card_action_open_url.rb +10 -0
- data/lib/tdlib/types/bank_card_info.rb +10 -0
- data/lib/tdlib/types/base.rb +29 -0
- data/lib/tdlib/types/basic_group.rb +16 -0
- data/lib/tdlib/types/basic_group_full_info.rb +19 -0
- data/lib/tdlib/types/bot_command.rb +10 -0
- data/lib/tdlib/types/bot_info.rb +10 -0
- data/lib/tdlib/types/call.rb +16 -0
- data/lib/tdlib/types/call_discard_reason.rb +14 -0
- data/lib/tdlib/types/call_discard_reason/declined.rb +6 -0
- data/lib/tdlib/types/call_discard_reason/disconnected.rb +5 -0
- data/lib/tdlib/types/call_discard_reason/empty.rb +5 -0
- data/lib/tdlib/types/call_discard_reason/hung_up.rb +5 -0
- data/lib/tdlib/types/call_discard_reason/missed.rb +6 -0
- data/lib/tdlib/types/call_id.rb +8 -0
- data/lib/tdlib/types/call_problem.rb +18 -0
- data/lib/tdlib/types/call_problem/distorted_speech.rb +5 -0
- data/lib/tdlib/types/call_problem/distorted_video.rb +5 -0
- data/lib/tdlib/types/call_problem/dropped.rb +5 -0
- data/lib/tdlib/types/call_problem/echo.rb +5 -0
- data/lib/tdlib/types/call_problem/interruptions.rb +5 -0
- data/lib/tdlib/types/call_problem/noise.rb +5 -0
- data/lib/tdlib/types/call_problem/pixelated_video.rb +5 -0
- data/lib/tdlib/types/call_problem/silent_local.rb +5 -0
- data/lib/tdlib/types/call_problem/silent_remote.rb +5 -0
- data/lib/tdlib/types/call_protocol.rb +16 -0
- data/lib/tdlib/types/call_server.rb +16 -0
- data/lib/tdlib/types/call_server_type.rb +11 -0
- data/lib/tdlib/types/call_server_type/telegram_reflector.rb +8 -0
- data/lib/tdlib/types/call_server_type/webrtc.rb +14 -0
- data/lib/tdlib/types/call_state.rb +15 -0
- data/lib/tdlib/types/call_state/discarded.rb +12 -0
- data/lib/tdlib/types/call_state/error.rb +9 -0
- data/lib/tdlib/types/call_state/exchanging_keys.rb +5 -0
- data/lib/tdlib/types/call_state/hanging_up.rb +5 -0
- data/lib/tdlib/types/call_state/pending.rb +10 -0
- data/lib/tdlib/types/call_state/ready.rb +18 -0
- data/lib/tdlib/types/callback_query_answer.rb +12 -0
- data/lib/tdlib/types/callback_query_payload.rb +12 -0
- data/lib/tdlib/types/callback_query_payload/data.rb +8 -0
- data/lib/tdlib/types/callback_query_payload/data_with_password.rb +10 -0
- data/lib/tdlib/types/callback_query_payload/game.rb +8 -0
- data/lib/tdlib/types/can_transfer_ownership_result.rb +13 -0
- data/lib/tdlib/types/can_transfer_ownership_result/ok.rb +5 -0
- data/lib/tdlib/types/can_transfer_ownership_result/password_needed.rb +5 -0
- data/lib/tdlib/types/can_transfer_ownership_result/password_too_fresh.rb +8 -0
- data/lib/tdlib/types/can_transfer_ownership_result/session_too_fresh.rb +8 -0
- data/lib/tdlib/types/chat.rb +69 -0
- data/lib/tdlib/types/chat_action.rb +22 -0
- data/lib/tdlib/types/chat_action/cancel.rb +5 -0
- data/lib/tdlib/types/chat_action/choosing_contact.rb +5 -0
- data/lib/tdlib/types/chat_action/choosing_location.rb +5 -0
- data/lib/tdlib/types/chat_action/recording_video.rb +5 -0
- data/lib/tdlib/types/chat_action/recording_video_note.rb +5 -0
- data/lib/tdlib/types/chat_action/recording_voice_note.rb +5 -0
- data/lib/tdlib/types/chat_action/start_playing_game.rb +5 -0
- data/lib/tdlib/types/chat_action/typing.rb +5 -0
- data/lib/tdlib/types/chat_action/uploading_document.rb +8 -0
- data/lib/tdlib/types/chat_action/uploading_photo.rb +8 -0
- data/lib/tdlib/types/chat_action/uploading_video.rb +8 -0
- data/lib/tdlib/types/chat_action/uploading_video_note.rb +8 -0
- data/lib/tdlib/types/chat_action/uploading_voice_note.rb +8 -0
- data/lib/tdlib/types/chat_action_bar.rb +15 -0
- data/lib/tdlib/types/chat_action_bar/add_contact.rb +6 -0
- data/lib/tdlib/types/chat_action_bar/invite_members.rb +5 -0
- data/lib/tdlib/types/chat_action_bar/report_add_block.rb +14 -0
- data/lib/tdlib/types/chat_action_bar/report_spam.rb +10 -0
- data/lib/tdlib/types/chat_action_bar/report_unrelated_location.rb +6 -0
- data/lib/tdlib/types/chat_action_bar/share_phone_number.rb +6 -0
- data/lib/tdlib/types/chat_administrator.rb +12 -0
- data/lib/tdlib/types/chat_administrators.rb +8 -0
- data/lib/tdlib/types/chat_event.rb +14 -0
- data/lib/tdlib/types/chat_event_action.rb +41 -0
- data/lib/tdlib/types/chat_event_action/description_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/invite_link_deleted.rb +8 -0
- data/lib/tdlib/types/chat_event_action/invite_link_edited.rb +10 -0
- data/lib/tdlib/types/chat_event_action/invite_link_revoked.rb +8 -0
- data/lib/tdlib/types/chat_event_action/invites_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/is_all_history_available_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/linked_chat_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/location_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/member_invited.rb +10 -0
- data/lib/tdlib/types/chat_event_action/member_joined.rb +5 -0
- data/lib/tdlib/types/chat_event_action/member_joined_by_invite_link.rb +8 -0
- data/lib/tdlib/types/chat_event_action/member_left.rb +5 -0
- data/lib/tdlib/types/chat_event_action/member_promoted.rb +12 -0
- data/lib/tdlib/types/chat_event_action/member_restricted.rb +12 -0
- data/lib/tdlib/types/chat_event_action/message_deleted.rb +8 -0
- data/lib/tdlib/types/chat_event_action/message_edited.rb +10 -0
- data/lib/tdlib/types/chat_event_action/message_pinned.rb +8 -0
- data/lib/tdlib/types/chat_event_action/message_ttl_setting_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/message_unpinned.rb +8 -0
- data/lib/tdlib/types/chat_event_action/permissions_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/photo_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/poll_stopped.rb +8 -0
- data/lib/tdlib/types/chat_event_action/sign_messages_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/slow_mode_delay_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/sticker_set_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/title_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/username_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/voice_chat_created.rb +9 -0
- data/lib/tdlib/types/chat_event_action/voice_chat_discarded.rb +9 -0
- data/lib/tdlib/types/chat_event_action/voice_chat_mute_new_participants_toggled.rb +8 -0
- data/lib/tdlib/types/chat_event_action/voice_chat_participant_is_muted_toggled.rb +10 -0
- data/lib/tdlib/types/chat_event_action/voice_chat_participant_volume_level_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_log_filters.rb +31 -0
- data/lib/tdlib/types/chat_events.rb +8 -0
- data/lib/tdlib/types/chat_filter.rb +36 -0
- data/lib/tdlib/types/chat_filter_info.rb +14 -0
- data/lib/tdlib/types/chat_invite_link.rb +27 -0
- data/lib/tdlib/types/chat_invite_link_count.rb +12 -0
- data/lib/tdlib/types/chat_invite_link_counts.rb +8 -0
- data/lib/tdlib/types/chat_invite_link_info.rb +24 -0
- data/lib/tdlib/types/chat_invite_link_member.rb +10 -0
- data/lib/tdlib/types/chat_invite_link_members.rb +10 -0
- data/lib/tdlib/types/chat_invite_links.rb +10 -0
- data/lib/tdlib/types/chat_list.rb +12 -0
- data/lib/tdlib/types/chat_list/archive.rb +6 -0
- data/lib/tdlib/types/chat_list/filter.rb +8 -0
- data/lib/tdlib/types/chat_list/main.rb +5 -0
- data/lib/tdlib/types/chat_lists.rb +8 -0
- data/lib/tdlib/types/chat_location.rb +10 -0
- data/lib/tdlib/types/chat_member.rb +21 -0
- data/lib/tdlib/types/chat_member_status.rb +15 -0
- data/lib/tdlib/types/chat_member_status/administrator.rb +42 -0
- data/lib/tdlib/types/chat_member_status/banned.rb +13 -0
- data/lib/tdlib/types/chat_member_status/creator.rb +14 -0
- data/lib/tdlib/types/chat_member_status/left.rb +5 -0
- data/lib/tdlib/types/chat_member_status/member.rb +5 -0
- data/lib/tdlib/types/chat_member_status/restricted.rb +16 -0
- data/lib/tdlib/types/chat_members.rb +10 -0
- data/lib/tdlib/types/chat_members_filter.rb +16 -0
- data/lib/tdlib/types/chat_members_filter/administrators.rb +5 -0
- data/lib/tdlib/types/chat_members_filter/banned.rb +5 -0
- data/lib/tdlib/types/chat_members_filter/bots.rb +5 -0
- data/lib/tdlib/types/chat_members_filter/contacts.rb +5 -0
- data/lib/tdlib/types/chat_members_filter/members.rb +5 -0
- data/lib/tdlib/types/chat_members_filter/mention.rb +8 -0
- data/lib/tdlib/types/chat_members_filter/restricted.rb +5 -0
- data/lib/tdlib/types/chat_nearby.rb +10 -0
- data/lib/tdlib/types/chat_notification_settings.rb +34 -0
- data/lib/tdlib/types/chat_permissions.rb +28 -0
- data/lib/tdlib/types/chat_photo.rb +16 -0
- data/lib/tdlib/types/chat_photo_info.rb +16 -0
- data/lib/tdlib/types/chat_photos.rb +10 -0
- data/lib/tdlib/types/chat_position.rb +15 -0
- data/lib/tdlib/types/chat_report_reason.rb +17 -0
- data/lib/tdlib/types/chat_report_reason/child_abuse.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/copyright.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/custom.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/fake.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/pornography.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/spam.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/unrelated_location.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/violence.rb +5 -0
- data/lib/tdlib/types/chat_source.rb +11 -0
- data/lib/tdlib/types/chat_source/mtproto_proxy.rb +5 -0
- data/lib/tdlib/types/chat_source/public_service_announcement.rb +10 -0
- data/lib/tdlib/types/chat_statistics.rb +11 -0
- data/lib/tdlib/types/chat_statistics/channel.rb +42 -0
- data/lib/tdlib/types/chat_statistics/supergroup.rb +42 -0
- data/lib/tdlib/types/chat_statistics_administrator_actions_info.rb +14 -0
- data/lib/tdlib/types/chat_statistics_inviter_info.rb +10 -0
- data/lib/tdlib/types/chat_statistics_message_interaction_info.rb +12 -0
- data/lib/tdlib/types/chat_statistics_message_sender_info.rb +12 -0
- data/lib/tdlib/types/chat_type.rb +13 -0
- data/lib/tdlib/types/chat_type/basic_group.rb +8 -0
- data/lib/tdlib/types/chat_type/private.rb +8 -0
- data/lib/tdlib/types/chat_type/secret.rb +10 -0
- data/lib/tdlib/types/chat_type/supergroup.rb +11 -0
- data/lib/tdlib/types/chats.rb +10 -0
- data/lib/tdlib/types/chats_nearby.rb +10 -0
- data/lib/tdlib/types/check_chat_username_result.rb +14 -0
- data/lib/tdlib/types/check_chat_username_result/ok.rb +5 -0
- data/lib/tdlib/types/check_chat_username_result/public_chats_too_much.rb +5 -0
- data/lib/tdlib/types/check_chat_username_result/public_groups_unavailable.rb +5 -0
- data/lib/tdlib/types/check_chat_username_result/username_invalid.rb +5 -0
- data/lib/tdlib/types/check_chat_username_result/username_occupied.rb +5 -0
- data/lib/tdlib/types/closed_vector_path.rb +9 -0
- data/lib/tdlib/types/connected_website.rb +25 -0
- data/lib/tdlib/types/connected_websites.rb +8 -0
- data/lib/tdlib/types/connection_state.rb +14 -0
- data/lib/tdlib/types/connection_state/connecting.rb +5 -0
- data/lib/tdlib/types/connection_state/connecting_to_proxy.rb +5 -0
- data/lib/tdlib/types/connection_state/ready.rb +5 -0
- data/lib/tdlib/types/connection_state/updating.rb +5 -0
- data/lib/tdlib/types/connection_state/waiting_for_network.rb +6 -0
- data/lib/tdlib/types/contact.rb +16 -0
- data/lib/tdlib/types/count.rb +8 -0
- data/lib/tdlib/types/countries.rb +8 -0
- data/lib/tdlib/types/country_info.rb +16 -0
- data/lib/tdlib/types/custom_request_result.rb +8 -0
- data/lib/tdlib/types/database_statistics.rb +8 -0
- data/lib/tdlib/types/date.rb +12 -0
- data/lib/tdlib/types/date_range.rb +10 -0
- data/lib/tdlib/types/dated_file.rb +10 -0
- data/lib/tdlib/types/deep_link_info.rb +10 -0
- data/lib/tdlib/types/device_token.rb +22 -0
- data/lib/tdlib/types/device_token/apple_push.rb +10 -0
- data/lib/tdlib/types/device_token/apple_push_vo_ip.rb +12 -0
- data/lib/tdlib/types/device_token/black_berry_push.rb +8 -0
- data/lib/tdlib/types/device_token/firebase_cloud_messaging.rb +10 -0
- data/lib/tdlib/types/device_token/microsoft_push.rb +8 -0
- data/lib/tdlib/types/device_token/microsoft_push_vo_ip.rb +8 -0
- data/lib/tdlib/types/device_token/simple_push.rb +9 -0
- data/lib/tdlib/types/device_token/tizen_push.rb +8 -0
- data/lib/tdlib/types/device_token/ubuntu_push.rb +8 -0
- data/lib/tdlib/types/device_token/web_push.rb +13 -0
- data/lib/tdlib/types/device_token/windows_push.rb +9 -0
- data/lib/tdlib/types/dice_stickers.rb +11 -0
- data/lib/tdlib/types/dice_stickers/regular.rb +8 -0
- data/lib/tdlib/types/dice_stickers/slot_machine.rb +18 -0
- data/lib/tdlib/types/document.rb +17 -0
- data/lib/tdlib/types/draft_message.rb +13 -0
- data/lib/tdlib/types/email_address_authentication_code_info.rb +10 -0
- data/lib/tdlib/types/emojis.rb +8 -0
- data/lib/tdlib/types/encrypted_credentials.rb +12 -0
- data/lib/tdlib/types/encrypted_passport_element.rb +25 -0
- data/lib/tdlib/types/error.rb +12 -0
- data/lib/tdlib/types/file.rb +18 -0
- data/lib/tdlib/types/file_part.rb +8 -0
- data/lib/tdlib/types/file_type.rb +25 -0
- data/lib/tdlib/types/file_type/animation.rb +5 -0
- data/lib/tdlib/types/file_type/audio.rb +5 -0
- data/lib/tdlib/types/file_type/document.rb +5 -0
- data/lib/tdlib/types/file_type/none.rb +5 -0
- data/lib/tdlib/types/file_type/photo.rb +5 -0
- data/lib/tdlib/types/file_type/profile_photo.rb +5 -0
- data/lib/tdlib/types/file_type/secret.rb +5 -0
- data/lib/tdlib/types/file_type/secret_thumbnail.rb +5 -0
- data/lib/tdlib/types/file_type/secure.rb +5 -0
- data/lib/tdlib/types/file_type/sticker.rb +5 -0
- data/lib/tdlib/types/file_type/thumbnail.rb +5 -0
- data/lib/tdlib/types/file_type/unknown.rb +5 -0
- data/lib/tdlib/types/file_type/video.rb +5 -0
- data/lib/tdlib/types/file_type/video_note.rb +5 -0
- data/lib/tdlib/types/file_type/voice_note.rb +5 -0
- data/lib/tdlib/types/file_type/wallpaper.rb +5 -0
- data/lib/tdlib/types/formatted_text.rb +14 -0
- data/lib/tdlib/types/found_messages.rb +13 -0
- data/lib/tdlib/types/game.rb +21 -0
- data/lib/tdlib/types/game_high_score.rb +12 -0
- data/lib/tdlib/types/game_high_scores.rb +8 -0
- data/lib/tdlib/types/group_call.rb +42 -0
- data/lib/tdlib/types/group_call_id.rb +8 -0
- data/lib/tdlib/types/group_call_join_response.rb +11 -0
- data/lib/tdlib/types/group_call_join_response/stream.rb +5 -0
- data/lib/tdlib/types/group_call_join_response/webrtc.rb +10 -0
- data/lib/tdlib/types/group_call_join_response_candidate.rb +32 -0
- data/lib/tdlib/types/group_call_participant.rb +41 -0
- data/lib/tdlib/types/group_call_payload.rb +12 -0
- data/lib/tdlib/types/group_call_payload_fingerprint.rb +12 -0
- data/lib/tdlib/types/group_call_recent_speaker.rb +10 -0
- data/lib/tdlib/types/hashtags.rb +8 -0
- data/lib/tdlib/types/http_url.rb +8 -0
- data/lib/tdlib/types/identity_document.rb +19 -0
- data/lib/tdlib/types/imported_contacts.rb +12 -0
- data/lib/tdlib/types/inline_keyboard_button.rb +10 -0
- data/lib/tdlib/types/inline_keyboard_button_type.rb +16 -0
- data/lib/tdlib/types/inline_keyboard_button_type/buy.rb +7 -0
- data/lib/tdlib/types/inline_keyboard_button_type/callback.rb +8 -0
- data/lib/tdlib/types/inline_keyboard_button_type/callback_game.rb +7 -0
- data/lib/tdlib/types/inline_keyboard_button_type/callback_with_password.rb +8 -0
- data/lib/tdlib/types/inline_keyboard_button_type/login_url.rb +12 -0
- data/lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb +10 -0
- data/lib/tdlib/types/inline_keyboard_button_type/url.rb +8 -0
- data/lib/tdlib/types/inline_query_result.rb +21 -0
- data/lib/tdlib/types/inline_query_result/animation.rb +12 -0
- data/lib/tdlib/types/inline_query_result/article.rb +18 -0
- data/lib/tdlib/types/inline_query_result/audio.rb +10 -0
- data/lib/tdlib/types/inline_query_result/contact.rb +12 -0
- data/lib/tdlib/types/inline_query_result/document.rb +14 -0
- data/lib/tdlib/types/inline_query_result/game.rb +10 -0
- data/lib/tdlib/types/inline_query_result/location.rb +14 -0
- data/lib/tdlib/types/inline_query_result/photo.rb +14 -0
- data/lib/tdlib/types/inline_query_result/sticker.rb +10 -0
- data/lib/tdlib/types/inline_query_result/venue.rb +12 -0
- data/lib/tdlib/types/inline_query_result/video.rb +14 -0
- data/lib/tdlib/types/inline_query_result/voice_note.rb +12 -0
- data/lib/tdlib/types/inline_query_results.rb +19 -0
- data/lib/tdlib/types/input_background.rb +11 -0
- data/lib/tdlib/types/input_background/local.rb +10 -0
- data/lib/tdlib/types/input_background/remote.rb +8 -0
- data/lib/tdlib/types/input_chat_photo.rb +12 -0
- data/lib/tdlib/types/input_chat_photo/animation.rb +12 -0
- data/lib/tdlib/types/input_chat_photo/previous.rb +8 -0
- data/lib/tdlib/types/input_chat_photo/static.rb +9 -0
- data/lib/tdlib/types/input_credentials.rb +13 -0
- data/lib/tdlib/types/input_credentials/apple_pay.rb +8 -0
- data/lib/tdlib/types/input_credentials/google_pay.rb +8 -0
- data/lib/tdlib/types/input_credentials/new.rb +10 -0
- data/lib/tdlib/types/input_credentials/saved.rb +9 -0
- data/lib/tdlib/types/input_file.rb +13 -0
- data/lib/tdlib/types/input_file/generated.rb +15 -0
- data/lib/tdlib/types/input_file/id.rb +8 -0
- data/lib/tdlib/types/input_file/local.rb +8 -0
- data/lib/tdlib/types/input_file/remote.rb +12 -0
- data/lib/tdlib/types/input_identity_document.rb +19 -0
- data/lib/tdlib/types/input_inline_query_result.rb +21 -0
- data/lib/tdlib/types/input_inline_query_result/animation.rb +34 -0
- data/lib/tdlib/types/input_inline_query_result/article.rb +29 -0
- data/lib/tdlib/types/input_inline_query_result/audio.rb +23 -0
- data/lib/tdlib/types/input_inline_query_result/contact.rb +23 -0
- data/lib/tdlib/types/input_inline_query_result/document.rb +30 -0
- data/lib/tdlib/types/input_inline_query_result/game.rb +13 -0
- data/lib/tdlib/types/input_inline_query_result/location.rb +28 -0
- data/lib/tdlib/types/input_inline_query_result/photo.rb +27 -0
- data/lib/tdlib/types/input_inline_query_result/sticker.rb +23 -0
- data/lib/tdlib/types/input_inline_query_result/venue.rb +23 -0
- data/lib/tdlib/types/input_inline_query_result/video.rb +32 -0
- data/lib/tdlib/types/input_inline_query_result/voice_note.rb +21 -0
- data/lib/tdlib/types/input_message_content.rb +26 -0
- data/lib/tdlib/types/input_message_content/animation.rb +21 -0
- data/lib/tdlib/types/input_message_content/audio.rb +18 -0
- data/lib/tdlib/types/input_message_content/contact.rb +8 -0
- data/lib/tdlib/types/input_message_content/dice.rb +10 -0
- data/lib/tdlib/types/input_message_content/document.rb +16 -0
- data/lib/tdlib/types/input_message_content/forwarded.rb +16 -0
- data/lib/tdlib/types/input_message_content/game.rb +10 -0
- data/lib/tdlib/types/input_message_content/invoice.rb +29 -0
- data/lib/tdlib/types/input_message_content/location.rb +19 -0
- data/lib/tdlib/types/input_message_content/photo.rb +22 -0
- data/lib/tdlib/types/input_message_content/poll.rb +24 -0
- data/lib/tdlib/types/input_message_content/sticker.rb +16 -0
- data/lib/tdlib/types/input_message_content/text.rb +15 -0
- data/lib/tdlib/types/input_message_content/venue.rb +8 -0
- data/lib/tdlib/types/input_message_content/video.rb +25 -0
- data/lib/tdlib/types/input_message_content/video_note.rb +14 -0
- data/lib/tdlib/types/input_message_content/voice_note.rb +14 -0
- data/lib/tdlib/types/input_passport_element.rb +22 -0
- data/lib/tdlib/types/input_passport_element/address.rb +8 -0
- data/lib/tdlib/types/input_passport_element/bank_statement.rb +8 -0
- data/lib/tdlib/types/input_passport_element/driver_license.rb +8 -0
- data/lib/tdlib/types/input_passport_element/email_address.rb +8 -0
- data/lib/tdlib/types/input_passport_element/identity_card.rb +8 -0
- data/lib/tdlib/types/input_passport_element/internal_passport.rb +8 -0
- data/lib/tdlib/types/input_passport_element/passport.rb +8 -0
- data/lib/tdlib/types/input_passport_element/passport_registration.rb +8 -0
- data/lib/tdlib/types/input_passport_element/personal_details.rb +8 -0
- data/lib/tdlib/types/input_passport_element/phone_number.rb +8 -0
- data/lib/tdlib/types/input_passport_element/rental_agreement.rb +8 -0
- data/lib/tdlib/types/input_passport_element/temporary_registration.rb +8 -0
- data/lib/tdlib/types/input_passport_element/utility_bill.rb +8 -0
- data/lib/tdlib/types/input_passport_element_error.rb +12 -0
- data/lib/tdlib/types/input_passport_element_error_source.rb +18 -0
- data/lib/tdlib/types/input_passport_element_error_source/data_field.rb +11 -0
- data/lib/tdlib/types/input_passport_element_error_source/file.rb +9 -0
- data/lib/tdlib/types/input_passport_element_error_source/files.rb +9 -0
- data/lib/tdlib/types/input_passport_element_error_source/front_side.rb +9 -0
- data/lib/tdlib/types/input_passport_element_error_source/reverse_side.rb +9 -0
- data/lib/tdlib/types/input_passport_element_error_source/selfie.rb +9 -0
- data/lib/tdlib/types/input_passport_element_error_source/translation_file.rb +9 -0
- data/lib/tdlib/types/input_passport_element_error_source/translation_files.rb +9 -0
- data/lib/tdlib/types/input_passport_element_error_source/unspecified.rb +9 -0
- data/lib/tdlib/types/input_personal_document.rb +11 -0
- data/lib/tdlib/types/input_sticker.rb +11 -0
- data/lib/tdlib/types/input_sticker/animated.rb +12 -0
- data/lib/tdlib/types/input_sticker/static.rb +14 -0
- data/lib/tdlib/types/input_thumbnail.rb +16 -0
- data/lib/tdlib/types/invoice.rb +31 -0
- data/lib/tdlib/types/json_object_member.rb +10 -0
- data/lib/tdlib/types/json_value.rb +15 -0
- data/lib/tdlib/types/json_value/array.rb +8 -0
- data/lib/tdlib/types/json_value/boolean.rb +8 -0
- data/lib/tdlib/types/json_value/null.rb +5 -0
- data/lib/tdlib/types/json_value/number.rb +8 -0
- data/lib/tdlib/types/json_value/object.rb +8 -0
- data/lib/tdlib/types/json_value/string.rb +8 -0
- data/lib/tdlib/types/keyboard_button.rb +10 -0
- data/lib/tdlib/types/keyboard_button_type.rb +13 -0
- data/lib/tdlib/types/keyboard_button_type/request_location.rb +5 -0
- data/lib/tdlib/types/keyboard_button_type/request_phone_number.rb +5 -0
- data/lib/tdlib/types/keyboard_button_type/request_poll.rb +10 -0
- data/lib/tdlib/types/keyboard_button_type/text.rb +5 -0
- data/lib/tdlib/types/labeled_price_part.rb +10 -0
- data/lib/tdlib/types/language_pack_info.rb +35 -0
- data/lib/tdlib/types/language_pack_string.rb +10 -0
- data/lib/tdlib/types/language_pack_string_value.rb +12 -0
- data/lib/tdlib/types/language_pack_string_value/deleted.rb +5 -0
- data/lib/tdlib/types/language_pack_string_value/ordinary.rb +8 -0
- data/lib/tdlib/types/language_pack_string_value/pluralized.rb +19 -0
- data/lib/tdlib/types/language_pack_strings.rb +8 -0
- data/lib/tdlib/types/local_file.rb +28 -0
- data/lib/tdlib/types/localization_target_info.rb +8 -0
- data/lib/tdlib/types/location.rb +14 -0
- data/lib/tdlib/types/log_stream.rb +12 -0
- data/lib/tdlib/types/log_stream/default.rb +5 -0
- data/lib/tdlib/types/log_stream/empty.rb +5 -0
- data/lib/tdlib/types/log_stream/file.rb +14 -0
- data/lib/tdlib/types/log_tags.rb +8 -0
- data/lib/tdlib/types/log_verbosity_level.rb +8 -0
- data/lib/tdlib/types/login_url_info.rb +11 -0
- data/lib/tdlib/types/login_url_info/open.rb +10 -0
- data/lib/tdlib/types/login_url_info/request_confirmation.rb +15 -0
- data/lib/tdlib/types/mask_point.rb +13 -0
- data/lib/tdlib/types/mask_point/chin.rb +5 -0
- data/lib/tdlib/types/mask_point/eyes.rb +5 -0
- data/lib/tdlib/types/mask_point/forehead.rb +5 -0
- data/lib/tdlib/types/mask_point/mouth.rb +5 -0
- data/lib/tdlib/types/mask_position.rb +17 -0
- data/lib/tdlib/types/message.rb +79 -0
- data/lib/tdlib/types/message_content.rb +55 -0
- data/lib/tdlib/types/message_content/animation.rb +13 -0
- data/lib/tdlib/types/message_content/audio.rb +10 -0
- data/lib/tdlib/types/message_content/basic_group_chat_create.rb +10 -0
- data/lib/tdlib/types/message_content/call.rb +12 -0
- data/lib/tdlib/types/message_content/chat_add_members.rb +8 -0
- data/lib/tdlib/types/message_content/chat_change_photo.rb +8 -0
- data/lib/tdlib/types/message_content/chat_change_title.rb +8 -0
- data/lib/tdlib/types/message_content/chat_delete_member.rb +8 -0
- data/lib/tdlib/types/message_content/chat_delete_photo.rb +5 -0
- data/lib/tdlib/types/message_content/chat_join_by_link.rb +5 -0
- data/lib/tdlib/types/message_content/chat_set_ttl.rb +8 -0
- data/lib/tdlib/types/message_content/chat_upgrade_from.rb +10 -0
- data/lib/tdlib/types/message_content/chat_upgrade_to.rb +8 -0
- data/lib/tdlib/types/message_content/contact.rb +8 -0
- data/lib/tdlib/types/message_content/contact_registered.rb +5 -0
- data/lib/tdlib/types/message_content/custom_service_action.rb +8 -0
- data/lib/tdlib/types/message_content/dice.rb +23 -0
- data/lib/tdlib/types/message_content/document.rb +10 -0
- data/lib/tdlib/types/message_content/expired_photo.rb +5 -0
- data/lib/tdlib/types/message_content/expired_video.rb +5 -0
- data/lib/tdlib/types/message_content/game.rb +8 -0
- data/lib/tdlib/types/message_content/game_score.rb +13 -0
- data/lib/tdlib/types/message_content/invite_voice_chat_participants.rb +11 -0
- data/lib/tdlib/types/message_content/invoice.rb +26 -0
- data/lib/tdlib/types/message_content/location.rb +22 -0
- data/lib/tdlib/types/message_content/passport_data_received.rb +10 -0
- data/lib/tdlib/types/message_content/passport_data_sent.rb +8 -0
- data/lib/tdlib/types/message_content/payment_successful.rb +15 -0
- data/lib/tdlib/types/message_content/payment_successful_bot.rb +21 -0
- data/lib/tdlib/types/message_content/photo.rb +12 -0
- data/lib/tdlib/types/message_content/pin_message.rb +8 -0
- data/lib/tdlib/types/message_content/poll.rb +8 -0
- data/lib/tdlib/types/message_content/proximity_alert_triggered.rb +12 -0
- data/lib/tdlib/types/message_content/screenshot_taken.rb +5 -0
- data/lib/tdlib/types/message_content/sticker.rb +8 -0
- data/lib/tdlib/types/message_content/supergroup_chat_create.rb +8 -0
- data/lib/tdlib/types/message_content/text.rb +10 -0
- data/lib/tdlib/types/message_content/unsupported.rb +5 -0
- data/lib/tdlib/types/message_content/venue.rb +8 -0
- data/lib/tdlib/types/message_content/video.rb +13 -0
- data/lib/tdlib/types/message_content/video_note.rb +13 -0
- data/lib/tdlib/types/message_content/voice_chat_ended.rb +8 -0
- data/lib/tdlib/types/message_content/voice_chat_scheduled.rb +12 -0
- data/lib/tdlib/types/message_content/voice_chat_started.rb +9 -0
- data/lib/tdlib/types/message_content/voice_note.rb +12 -0
- data/lib/tdlib/types/message_content/website_connected.rb +8 -0
- data/lib/tdlib/types/message_copy_options.rb +17 -0
- data/lib/tdlib/types/message_file_type.rb +12 -0
- data/lib/tdlib/types/message_file_type/group.rb +8 -0
- data/lib/tdlib/types/message_file_type/private.rb +8 -0
- data/lib/tdlib/types/message_file_type/unknown.rb +5 -0
- data/lib/tdlib/types/message_forward_info.rb +21 -0
- data/lib/tdlib/types/message_forward_origin.rb +14 -0
- data/lib/tdlib/types/message_forward_origin/channel.rb +12 -0
- data/lib/tdlib/types/message_forward_origin/chat.rb +10 -0
- data/lib/tdlib/types/message_forward_origin/hidden_user.rb +8 -0
- data/lib/tdlib/types/message_forward_origin/message_import.rb +8 -0
- data/lib/tdlib/types/message_forward_origin/user.rb +8 -0
- data/lib/tdlib/types/message_interaction_info.rb +15 -0
- data/lib/tdlib/types/message_link.rb +10 -0
- data/lib/tdlib/types/message_link_info.rb +16 -0
- data/lib/tdlib/types/message_reply_info.rb +17 -0
- data/lib/tdlib/types/message_scheduling_state.rb +11 -0
- data/lib/tdlib/types/message_scheduling_state/send_at_date.rb +9 -0
- data/lib/tdlib/types/message_scheduling_state/send_when_online.rb +6 -0
- data/lib/tdlib/types/message_send_options.rb +13 -0
- data/lib/tdlib/types/message_sender.rb +11 -0
- data/lib/tdlib/types/message_sender/chat.rb +8 -0
- data/lib/tdlib/types/message_sender/user.rb +8 -0
- data/lib/tdlib/types/message_senders.rb +10 -0
- data/lib/tdlib/types/message_sending_state.rb +11 -0
- data/lib/tdlib/types/message_sending_state/failed.rb +15 -0
- data/lib/tdlib/types/message_sending_state/pending.rb +5 -0
- data/lib/tdlib/types/message_statistics.rb +9 -0
- data/lib/tdlib/types/message_thread_info.rb +17 -0
- data/lib/tdlib/types/messages.rb +10 -0
- data/lib/tdlib/types/minithumbnail.rb +12 -0
- data/lib/tdlib/types/network_statistics.rb +10 -0
- data/lib/tdlib/types/network_statistics_entry.rb +11 -0
- data/lib/tdlib/types/network_statistics_entry/call.rb +15 -0
- data/lib/tdlib/types/network_statistics_entry/file.rb +15 -0
- data/lib/tdlib/types/network_type.rb +14 -0
- data/lib/tdlib/types/network_type/mobile.rb +5 -0
- data/lib/tdlib/types/network_type/mobile_roaming.rb +5 -0
- data/lib/tdlib/types/network_type/none.rb +5 -0
- data/lib/tdlib/types/network_type/other.rb +5 -0
- data/lib/tdlib/types/network_type/wi_fi.rb +5 -0
- data/lib/tdlib/types/notification.rb +14 -0
- data/lib/tdlib/types/notification_group.rb +16 -0
- data/lib/tdlib/types/notification_group_type.rb +13 -0
- data/lib/tdlib/types/notification_group_type/calls.rb +5 -0
- data/lib/tdlib/types/notification_group_type/mentions.rb +6 -0
- data/lib/tdlib/types/notification_group_type/messages.rb +6 -0
- data/lib/tdlib/types/notification_group_type/secret_chat.rb +5 -0
- data/lib/tdlib/types/notification_settings_scope.rb +12 -0
- data/lib/tdlib/types/notification_settings_scope/channel_chats.rb +5 -0
- data/lib/tdlib/types/notification_settings_scope/group_chats.rb +6 -0
- data/lib/tdlib/types/notification_settings_scope/private_chats.rb +6 -0
- data/lib/tdlib/types/notification_type.rb +13 -0
- data/lib/tdlib/types/notification_type/new_call.rb +8 -0
- data/lib/tdlib/types/notification_type/new_message.rb +8 -0
- data/lib/tdlib/types/notification_type/new_push_message.rb +19 -0
- data/lib/tdlib/types/notification_type/new_secret_chat.rb +5 -0
- data/lib/tdlib/types/ok.rb +5 -0
- data/lib/tdlib/types/option_value.rb +13 -0
- data/lib/tdlib/types/option_value/boolean.rb +8 -0
- data/lib/tdlib/types/option_value/empty.rb +5 -0
- data/lib/tdlib/types/option_value/integer.rb +8 -0
- data/lib/tdlib/types/option_value/string.rb +8 -0
- data/lib/tdlib/types/order_info.rb +14 -0
- data/lib/tdlib/types/page_block.rb +38 -0
- data/lib/tdlib/types/page_block/anchor.rb +8 -0
- data/lib/tdlib/types/page_block/animation.rb +12 -0
- data/lib/tdlib/types/page_block/audio.rb +10 -0
- data/lib/tdlib/types/page_block/author_date.rb +10 -0
- data/lib/tdlib/types/page_block/block_quote.rb +10 -0
- data/lib/tdlib/types/page_block/chat_link.rb +12 -0
- data/lib/tdlib/types/page_block/collage.rb +10 -0
- data/lib/tdlib/types/page_block/cover.rb +8 -0
- data/lib/tdlib/types/page_block/details.rb +12 -0
- data/lib/tdlib/types/page_block/divider.rb +5 -0
- data/lib/tdlib/types/page_block/embedded.rb +22 -0
- data/lib/tdlib/types/page_block/embedded_post.rb +18 -0
- data/lib/tdlib/types/page_block/footer.rb +8 -0
- data/lib/tdlib/types/page_block/header.rb +8 -0
- data/lib/tdlib/types/page_block/kicker.rb +8 -0
- data/lib/tdlib/types/page_block/list.rb +8 -0
- data/lib/tdlib/types/page_block/map.rb +16 -0
- data/lib/tdlib/types/page_block/paragraph.rb +8 -0
- data/lib/tdlib/types/page_block/photo.rb +12 -0
- data/lib/tdlib/types/page_block/preformatted.rb +10 -0
- data/lib/tdlib/types/page_block/pull_quote.rb +10 -0
- data/lib/tdlib/types/page_block/related_articles.rb +10 -0
- data/lib/tdlib/types/page_block/slideshow.rb +10 -0
- data/lib/tdlib/types/page_block/subheader.rb +8 -0
- data/lib/tdlib/types/page_block/subtitle.rb +8 -0
- data/lib/tdlib/types/page_block/table.rb +14 -0
- data/lib/tdlib/types/page_block/title.rb +8 -0
- data/lib/tdlib/types/page_block/video.rb +14 -0
- data/lib/tdlib/types/page_block/voice_note.rb +10 -0
- data/lib/tdlib/types/page_block_caption.rb +10 -0
- data/lib/tdlib/types/page_block_horizontal_alignment.rb +12 -0
- data/lib/tdlib/types/page_block_horizontal_alignment/center.rb +5 -0
- data/lib/tdlib/types/page_block_horizontal_alignment/left.rb +5 -0
- data/lib/tdlib/types/page_block_horizontal_alignment/right.rb +5 -0
- data/lib/tdlib/types/page_block_list_item.rb +10 -0
- data/lib/tdlib/types/page_block_related_article.rb +18 -0
- data/lib/tdlib/types/page_block_table_cell.rb +19 -0
- data/lib/tdlib/types/page_block_vertical_alignment.rb +12 -0
- data/lib/tdlib/types/page_block_vertical_alignment/bottom.rb +5 -0
- data/lib/tdlib/types/page_block_vertical_alignment/middle.rb +5 -0
- data/lib/tdlib/types/page_block_vertical_alignment/top.rb +5 -0
- data/lib/tdlib/types/passport_authorization_form.rb +13 -0
- data/lib/tdlib/types/passport_element.rb +22 -0
- data/lib/tdlib/types/passport_element/address.rb +8 -0
- data/lib/tdlib/types/passport_element/bank_statement.rb +8 -0
- data/lib/tdlib/types/passport_element/driver_license.rb +8 -0
- data/lib/tdlib/types/passport_element/email_address.rb +8 -0
- data/lib/tdlib/types/passport_element/identity_card.rb +8 -0
- data/lib/tdlib/types/passport_element/internal_passport.rb +8 -0
- data/lib/tdlib/types/passport_element/passport.rb +8 -0
- data/lib/tdlib/types/passport_element/passport_registration.rb +8 -0
- data/lib/tdlib/types/passport_element/personal_details.rb +8 -0
- data/lib/tdlib/types/passport_element/phone_number.rb +8 -0
- data/lib/tdlib/types/passport_element/rental_agreement.rb +8 -0
- data/lib/tdlib/types/passport_element/temporary_registration.rb +8 -0
- data/lib/tdlib/types/passport_element/utility_bill.rb +8 -0
- data/lib/tdlib/types/passport_element_error.rb +12 -0
- data/lib/tdlib/types/passport_element_error_source.rb +18 -0
- data/lib/tdlib/types/passport_element_error_source/data_field.rb +9 -0
- data/lib/tdlib/types/passport_element_error_source/file.rb +9 -0
- data/lib/tdlib/types/passport_element_error_source/files.rb +6 -0
- data/lib/tdlib/types/passport_element_error_source/front_side.rb +6 -0
- data/lib/tdlib/types/passport_element_error_source/reverse_side.rb +6 -0
- data/lib/tdlib/types/passport_element_error_source/selfie.rb +6 -0
- data/lib/tdlib/types/passport_element_error_source/translation_file.rb +9 -0
- data/lib/tdlib/types/passport_element_error_source/translation_files.rb +6 -0
- data/lib/tdlib/types/passport_element_error_source/unspecified.rb +6 -0
- data/lib/tdlib/types/passport_element_type.rb +22 -0
- data/lib/tdlib/types/passport_element_type/address.rb +5 -0
- data/lib/tdlib/types/passport_element_type/bank_statement.rb +5 -0
- data/lib/tdlib/types/passport_element_type/driver_license.rb +5 -0
- data/lib/tdlib/types/passport_element_type/email_address.rb +5 -0
- data/lib/tdlib/types/passport_element_type/identity_card.rb +5 -0
- data/lib/tdlib/types/passport_element_type/internal_passport.rb +5 -0
- data/lib/tdlib/types/passport_element_type/passport.rb +5 -0
- data/lib/tdlib/types/passport_element_type/passport_registration.rb +5 -0
- data/lib/tdlib/types/passport_element_type/personal_details.rb +5 -0
- data/lib/tdlib/types/passport_element_type/phone_number.rb +5 -0
- data/lib/tdlib/types/passport_element_type/rental_agreement.rb +5 -0
- data/lib/tdlib/types/passport_element_type/temporary_registration.rb +5 -0
- data/lib/tdlib/types/passport_element_type/utility_bill.rb +5 -0
- data/lib/tdlib/types/passport_elements.rb +8 -0
- data/lib/tdlib/types/passport_elements_with_errors.rb +10 -0
- data/lib/tdlib/types/passport_required_element.rb +9 -0
- data/lib/tdlib/types/passport_suitable_element.rb +15 -0
- data/lib/tdlib/types/password_state.rb +17 -0
- data/lib/tdlib/types/payment_form.rb +29 -0
- data/lib/tdlib/types/payment_form_theme.rb +18 -0
- data/lib/tdlib/types/payment_receipt.rb +28 -0
- data/lib/tdlib/types/payment_result.rb +11 -0
- data/lib/tdlib/types/payments_provider_stripe.rb +14 -0
- data/lib/tdlib/types/personal_details.rb +26 -0
- data/lib/tdlib/types/personal_document.rb +11 -0
- data/lib/tdlib/types/phone_number_authentication_settings.rb +16 -0
- data/lib/tdlib/types/phone_number_info.rb +14 -0
- data/lib/tdlib/types/photo.rb +13 -0
- data/lib/tdlib/types/photo_size.rb +17 -0
- data/lib/tdlib/types/point.rb +10 -0
- data/lib/tdlib/types/poll.rb +26 -0
- data/lib/tdlib/types/poll_option.rb +16 -0
- data/lib/tdlib/types/poll_type.rb +11 -0
- data/lib/tdlib/types/poll_type/quiz.rb +11 -0
- data/lib/tdlib/types/poll_type/regular.rb +8 -0
- data/lib/tdlib/types/profile_photo.rb +19 -0
- data/lib/tdlib/types/proxies.rb +8 -0
- data/lib/tdlib/types/proxy.rb +18 -0
- data/lib/tdlib/types/proxy_type.rb +12 -0
- data/lib/tdlib/types/proxy_type/http.rb +13 -0
- data/lib/tdlib/types/proxy_type/mtproto.rb +8 -0
- data/lib/tdlib/types/proxy_type/socks5.rb +10 -0
- data/lib/tdlib/types/public_chat_type.rb +11 -0
- data/lib/tdlib/types/public_chat_type/has_username.rb +5 -0
- data/lib/tdlib/types/public_chat_type/is_location_based.rb +5 -0
- data/lib/tdlib/types/push_message_content.rb +35 -0
- data/lib/tdlib/types/push_message_content/animation.rb +12 -0
- data/lib/tdlib/types/push_message_content/audio.rb +10 -0
- data/lib/tdlib/types/push_message_content/basic_group_chat_create.rb +5 -0
- data/lib/tdlib/types/push_message_content/chat_add_members.rb +12 -0
- data/lib/tdlib/types/push_message_content/chat_change_photo.rb +5 -0
- data/lib/tdlib/types/push_message_content/chat_change_title.rb +8 -0
- data/lib/tdlib/types/push_message_content/chat_delete_member.rb +12 -0
- data/lib/tdlib/types/push_message_content/chat_join_by_link.rb +5 -0
- data/lib/tdlib/types/push_message_content/contact.rb +10 -0
- data/lib/tdlib/types/push_message_content/contact_registered.rb +5 -0
- data/lib/tdlib/types/push_message_content/document.rb +10 -0
- data/lib/tdlib/types/push_message_content/game.rb +10 -0
- data/lib/tdlib/types/push_message_content/game_score.rb +12 -0
- data/lib/tdlib/types/push_message_content/hidden.rb +8 -0
- data/lib/tdlib/types/push_message_content/invoice.rb +10 -0
- data/lib/tdlib/types/push_message_content/location.rb +10 -0
- data/lib/tdlib/types/push_message_content/media_album.rb +16 -0
- data/lib/tdlib/types/push_message_content/message_forwards.rb +8 -0
- data/lib/tdlib/types/push_message_content/photo.rb +14 -0
- data/lib/tdlib/types/push_message_content/poll.rb +12 -0
- data/lib/tdlib/types/push_message_content/screenshot_taken.rb +5 -0
- data/lib/tdlib/types/push_message_content/sticker.rb +12 -0
- data/lib/tdlib/types/push_message_content/text.rb +10 -0
- data/lib/tdlib/types/push_message_content/video.rb +14 -0
- data/lib/tdlib/types/push_message_content/video_note.rb +10 -0
- data/lib/tdlib/types/push_message_content/voice_note.rb +10 -0
- data/lib/tdlib/types/push_receiver_id.rb +9 -0
- data/lib/tdlib/types/recommended_chat_filter.rb +10 -0
- data/lib/tdlib/types/recommended_chat_filters.rb +8 -0
- data/lib/tdlib/types/recovery_email_address.rb +8 -0
- data/lib/tdlib/types/remote_file.rb +27 -0
- data/lib/tdlib/types/reply_markup.rb +13 -0
- data/lib/tdlib/types/reply_markup/force_reply.rb +10 -0
- data/lib/tdlib/types/reply_markup/inline_keyboard.rb +8 -0
- data/lib/tdlib/types/reply_markup/remove_keyboard.rb +11 -0
- data/lib/tdlib/types/reply_markup/show_keyboard.rb +16 -0
- data/lib/tdlib/types/rich_text.rb +26 -0
- data/lib/tdlib/types/rich_text/anchor.rb +8 -0
- data/lib/tdlib/types/rich_text/anchor_link.rb +13 -0
- data/lib/tdlib/types/rich_text/bold.rb +8 -0
- data/lib/tdlib/types/rich_text/email_address.rb +10 -0
- data/lib/tdlib/types/rich_text/fixed.rb +8 -0
- data/lib/tdlib/types/rich_text/icon.rb +13 -0
- data/lib/tdlib/types/rich_text/italic.rb +8 -0
- data/lib/tdlib/types/rich_text/marked.rb +8 -0
- data/lib/tdlib/types/rich_text/phone_number.rb +10 -0
- data/lib/tdlib/types/rich_text/plain.rb +8 -0
- data/lib/tdlib/types/rich_text/reference.rb +13 -0
- data/lib/tdlib/types/rich_text/s.rb +8 -0
- data/lib/tdlib/types/rich_text/strikethrough.rb +8 -0
- data/lib/tdlib/types/rich_text/subscript.rb +8 -0
- data/lib/tdlib/types/rich_text/superscript.rb +8 -0
- data/lib/tdlib/types/rich_text/underline.rb +8 -0
- data/lib/tdlib/types/rich_text/url.rb +12 -0
- data/lib/tdlib/types/saved_credentials.rb +10 -0
- data/lib/tdlib/types/scope_notification_settings.rb +19 -0
- data/lib/tdlib/types/search_messages_filter.rb +27 -0
- data/lib/tdlib/types/search_messages_filter/animation.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/audio.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/call.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/chat_photo.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/document.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/empty.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/failed_to_send.rb +6 -0
- data/lib/tdlib/types/search_messages_filter/mention.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/missed_call.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/photo.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/photo_and_video.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/pinned.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/unread_mention.rb +7 -0
- data/lib/tdlib/types/search_messages_filter/url.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/video.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/video_note.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/voice_and_video_note.rb +5 -0
- data/lib/tdlib/types/search_messages_filter/voice_note.rb +5 -0
- data/lib/tdlib/types/seconds.rb +8 -0
- data/lib/tdlib/types/secret_chat.rb +25 -0
- data/lib/tdlib/types/secret_chat_state.rb +12 -0
- data/lib/tdlib/types/secret_chat_state/closed.rb +5 -0
- data/lib/tdlib/types/secret_chat_state/pending.rb +5 -0
- data/lib/tdlib/types/secret_chat_state/ready.rb +5 -0
- data/lib/tdlib/types/session.rb +42 -0
- data/lib/tdlib/types/sessions.rb +8 -0
- data/lib/tdlib/types/shipping_option.rb +13 -0
- data/lib/tdlib/types/statistical_graph.rb +12 -0
- data/lib/tdlib/types/statistical_graph/async.rb +8 -0
- data/lib/tdlib/types/statistical_graph/data.rb +10 -0
- data/lib/tdlib/types/statistical_graph/error.rb +8 -0
- data/lib/tdlib/types/statistical_value.rb +12 -0
- data/lib/tdlib/types/sticker.rb +28 -0
- data/lib/tdlib/types/sticker_set.rb +39 -0
- data/lib/tdlib/types/sticker_set_info.rb +38 -0
- data/lib/tdlib/types/sticker_sets.rb +10 -0
- data/lib/tdlib/types/stickers.rb +8 -0
- data/lib/tdlib/types/storage_statistics.rb +12 -0
- data/lib/tdlib/types/storage_statistics_by_chat.rb +14 -0
- data/lib/tdlib/types/storage_statistics_by_file_type.rb +12 -0
- data/lib/tdlib/types/storage_statistics_fast.rb +16 -0
- data/lib/tdlib/types/suggested_action.rb +13 -0
- data/lib/tdlib/types/suggested_action/check_phone_number.rb +5 -0
- data/lib/tdlib/types/suggested_action/convert_to_broadcast_group.rb +8 -0
- data/lib/tdlib/types/suggested_action/enable_archive_and_mute_new_chats.rb +5 -0
- data/lib/tdlib/types/suggested_action/see_ticks_hint.rb +5 -0
- data/lib/tdlib/types/supergroup.rb +50 -0
- data/lib/tdlib/types/supergroup_full_info.rb +56 -0
- data/lib/tdlib/types/supergroup_members_filter.rb +17 -0
- data/lib/tdlib/types/supergroup_members_filter/administrators.rb +5 -0
- data/lib/tdlib/types/supergroup_members_filter/banned.rb +8 -0
- data/lib/tdlib/types/supergroup_members_filter/bots.rb +5 -0
- data/lib/tdlib/types/supergroup_members_filter/contacts.rb +8 -0
- data/lib/tdlib/types/supergroup_members_filter/mention.rb +10 -0
- data/lib/tdlib/types/supergroup_members_filter/recent.rb +5 -0
- data/lib/tdlib/types/supergroup_members_filter/restricted.rb +8 -0
- data/lib/tdlib/types/supergroup_members_filter/search.rb +8 -0
- data/lib/tdlib/types/t_me_url.rb +10 -0
- data/lib/tdlib/types/t_me_url_type.rb +13 -0
- data/lib/tdlib/types/t_me_url_type/chat_invite.rb +8 -0
- data/lib/tdlib/types/t_me_url_type/sticker_set.rb +8 -0
- data/lib/tdlib/types/t_me_url_type/supergroup.rb +8 -0
- data/lib/tdlib/types/t_me_url_type/user.rb +8 -0
- data/lib/tdlib/types/t_me_urls.rb +8 -0
- data/lib/tdlib/types/tdlib_parameters.rb +47 -0
- data/lib/tdlib/types/temporary_password_state.rb +10 -0
- data/lib/tdlib/types/terms_of_service.rb +12 -0
- data/lib/tdlib/types/text.rb +8 -0
- data/lib/tdlib/types/text_entities.rb +8 -0
- data/lib/tdlib/types/text_entity.rb +12 -0
- data/lib/tdlib/types/text_entity_type.rb +26 -0
- data/lib/tdlib/types/text_entity_type/bank_card_number.rb +6 -0
- data/lib/tdlib/types/text_entity_type/bold.rb +5 -0
- data/lib/tdlib/types/text_entity_type/bot_command.rb +6 -0
- data/lib/tdlib/types/text_entity_type/cashtag.rb +6 -0
- data/lib/tdlib/types/text_entity_type/code.rb +5 -0
- data/lib/tdlib/types/text_entity_type/email_address.rb +5 -0
- data/lib/tdlib/types/text_entity_type/hashtag.rb +5 -0
- data/lib/tdlib/types/text_entity_type/italic.rb +5 -0
- data/lib/tdlib/types/text_entity_type/mention.rb +5 -0
- data/lib/tdlib/types/text_entity_type/mention_name.rb +8 -0
- data/lib/tdlib/types/text_entity_type/phone_number.rb +5 -0
- data/lib/tdlib/types/text_entity_type/pre.rb +5 -0
- data/lib/tdlib/types/text_entity_type/pre_code.rb +8 -0
- data/lib/tdlib/types/text_entity_type/strikethrough.rb +5 -0
- data/lib/tdlib/types/text_entity_type/text_url.rb +8 -0
- data/lib/tdlib/types/text_entity_type/underline.rb +5 -0
- data/lib/tdlib/types/text_entity_type/url.rb +5 -0
- data/lib/tdlib/types/text_parse_mode.rb +11 -0
- data/lib/tdlib/types/text_parse_mode/html.rb +6 -0
- data/lib/tdlib/types/text_parse_mode/markdown.rb +9 -0
- data/lib/tdlib/types/thumbnail.rb +14 -0
- data/lib/tdlib/types/thumbnail_format.rb +15 -0
- data/lib/tdlib/types/thumbnail_format/gif.rb +6 -0
- data/lib/tdlib/types/thumbnail_format/jpeg.rb +5 -0
- data/lib/tdlib/types/thumbnail_format/mpeg4.rb +6 -0
- data/lib/tdlib/types/thumbnail_format/png.rb +6 -0
- data/lib/tdlib/types/thumbnail_format/tgs.rb +6 -0
- data/lib/tdlib/types/thumbnail_format/webp.rb +6 -0
- data/lib/tdlib/types/top_chat_category.rb +16 -0
- data/lib/tdlib/types/top_chat_category/bots.rb +5 -0
- data/lib/tdlib/types/top_chat_category/calls.rb +5 -0
- data/lib/tdlib/types/top_chat_category/channels.rb +5 -0
- data/lib/tdlib/types/top_chat_category/forward_chats.rb +5 -0
- data/lib/tdlib/types/top_chat_category/groups.rb +5 -0
- data/lib/tdlib/types/top_chat_category/inline_bots.rb +5 -0
- data/lib/tdlib/types/top_chat_category/users.rb +5 -0
- data/lib/tdlib/types/update.rb +94 -0
- data/lib/tdlib/types/update/active_notifications.rb +10 -0
- data/lib/tdlib/types/update/animation_search_parameters.rb +10 -0
- data/lib/tdlib/types/update/authorization_state.rb +8 -0
- data/lib/tdlib/types/update/basic_group.rb +9 -0
- data/lib/tdlib/types/update/basic_group_full_info.rb +10 -0
- data/lib/tdlib/types/update/call.rb +8 -0
- data/lib/tdlib/types/update/chat_action_bar.rb +10 -0
- data/lib/tdlib/types/update/chat_default_disable_notification.rb +10 -0
- data/lib/tdlib/types/update/chat_draft_message.rb +14 -0
- data/lib/tdlib/types/update/chat_filters.rb +8 -0
- data/lib/tdlib/types/update/chat_has_scheduled_messages.rb +10 -0
- data/lib/tdlib/types/update/chat_is_blocked.rb +10 -0
- data/lib/tdlib/types/update/chat_is_marked_as_unread.rb +10 -0
- data/lib/tdlib/types/update/chat_last_message.rb +14 -0
- data/lib/tdlib/types/update/chat_member.rb +19 -0
- data/lib/tdlib/types/update/chat_message_ttl_setting.rb +10 -0
- data/lib/tdlib/types/update/chat_notification_settings.rb +10 -0
- data/lib/tdlib/types/update/chat_online_member_count.rb +12 -0
- data/lib/tdlib/types/update/chat_permissions.rb +10 -0
- data/lib/tdlib/types/update/chat_photo.rb +10 -0
- data/lib/tdlib/types/update/chat_position.rb +12 -0
- data/lib/tdlib/types/update/chat_read_inbox.rb +12 -0
- data/lib/tdlib/types/update/chat_read_outbox.rb +10 -0
- data/lib/tdlib/types/update/chat_reply_markup.rb +13 -0
- data/lib/tdlib/types/update/chat_title.rb +10 -0
- data/lib/tdlib/types/update/chat_unread_mention_count.rb +10 -0
- data/lib/tdlib/types/update/chat_voice_chat.rb +10 -0
- data/lib/tdlib/types/update/connection_state.rb +9 -0
- data/lib/tdlib/types/update/delete_messages.rb +16 -0
- data/lib/tdlib/types/update/dice_emojis.rb +8 -0
- data/lib/tdlib/types/update/favorite_stickers.rb +8 -0
- data/lib/tdlib/types/update/file.rb +8 -0
- data/lib/tdlib/types/update/file_generation_start.rb +17 -0
- data/lib/tdlib/types/update/file_generation_stop.rb +8 -0
- data/lib/tdlib/types/update/group_call.rb +8 -0
- data/lib/tdlib/types/update/group_call_participant.rb +12 -0
- data/lib/tdlib/types/update/have_pending_notifications.rb +13 -0
- data/lib/tdlib/types/update/installed_sticker_sets.rb +10 -0
- data/lib/tdlib/types/update/language_pack_strings.rb +12 -0
- data/lib/tdlib/types/update/message_content.rb +12 -0
- data/lib/tdlib/types/update/message_content_opened.rb +12 -0
- data/lib/tdlib/types/update/message_edited.rb +15 -0
- data/lib/tdlib/types/update/message_interaction_info.rb +13 -0
- data/lib/tdlib/types/update/message_is_pinned.rb +12 -0
- data/lib/tdlib/types/update/message_live_location_viewed.rb +11 -0
- data/lib/tdlib/types/update/message_mention_read.rb +12 -0
- data/lib/tdlib/types/update/message_send_acknowledged.rb +14 -0
- data/lib/tdlib/types/update/message_send_failed.rb +16 -0
- data/lib/tdlib/types/update/message_send_succeeded.rb +11 -0
- data/lib/tdlib/types/update/new_call_signaling_data.rb +10 -0
- data/lib/tdlib/types/update/new_callback_query.rb +18 -0
- data/lib/tdlib/types/update/new_chat.rb +10 -0
- data/lib/tdlib/types/update/new_chosen_inline_result.rb +16 -0
- data/lib/tdlib/types/update/new_custom_event.rb +8 -0
- data/lib/tdlib/types/update/new_custom_query.rb +12 -0
- data/lib/tdlib/types/update/new_inline_callback_query.rb +16 -0
- data/lib/tdlib/types/update/new_inline_query.rb +19 -0
- data/lib/tdlib/types/update/new_message.rb +8 -0
- data/lib/tdlib/types/update/new_pre_checkout_query.rb +22 -0
- data/lib/tdlib/types/update/new_shipping_query.rb +15 -0
- data/lib/tdlib/types/update/notification.rb +10 -0
- data/lib/tdlib/types/update/notification_group.rb +26 -0
- data/lib/tdlib/types/update/option.rb +10 -0
- data/lib/tdlib/types/update/poll.rb +8 -0
- data/lib/tdlib/types/update/poll_answer.rb +12 -0
- data/lib/tdlib/types/update/recent_stickers.rb +11 -0
- data/lib/tdlib/types/update/saved_animations.rb +8 -0
- data/lib/tdlib/types/update/scope_notification_settings.rb +10 -0
- data/lib/tdlib/types/update/secret_chat.rb +9 -0
- data/lib/tdlib/types/update/selected_background.rb +10 -0
- data/lib/tdlib/types/update/service_notification.rb +13 -0
- data/lib/tdlib/types/update/sticker_set.rb +8 -0
- data/lib/tdlib/types/update/suggested_actions.rb +10 -0
- data/lib/tdlib/types/update/supergroup.rb +9 -0
- data/lib/tdlib/types/update/supergroup_full_info.rb +10 -0
- data/lib/tdlib/types/update/terms_of_service.rb +12 -0
- data/lib/tdlib/types/update/trending_sticker_sets.rb +9 -0
- data/lib/tdlib/types/update/unread_chat_count.rb +20 -0
- data/lib/tdlib/types/update/unread_message_count.rb +13 -0
- data/lib/tdlib/types/update/user.rb +9 -0
- data/lib/tdlib/types/update/user_chat_action.rb +14 -0
- data/lib/tdlib/types/update/user_full_info.rb +10 -0
- data/lib/tdlib/types/update/user_privacy_setting_rules.rb +10 -0
- data/lib/tdlib/types/update/user_status.rb +10 -0
- data/lib/tdlib/types/update/users_nearby.rb +9 -0
- data/lib/tdlib/types/updates.rb +8 -0
- data/lib/tdlib/types/user.rb +44 -0
- data/lib/tdlib/types/user_full_info.rb +28 -0
- data/lib/tdlib/types/user_privacy_setting.rb +17 -0
- data/lib/tdlib/types/user_privacy_setting/allow_calls.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting/allow_chat_invites.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting/allow_finding_by_phone_number.rb +7 -0
- data/lib/tdlib/types/user_privacy_setting/allow_peer_to_peer_calls.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting/show_link_in_forwarded_messages.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting/show_phone_number.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting/show_profile_photo.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting/show_status.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting_rule.rb +17 -0
- data/lib/tdlib/types/user_privacy_setting_rule/allow_all.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting_rule/allow_chat_members.rb +8 -0
- data/lib/tdlib/types/user_privacy_setting_rule/allow_contacts.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting_rule/allow_users.rb +8 -0
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_all.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_chat_members.rb +8 -0
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_contacts.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_users.rb +8 -0
- data/lib/tdlib/types/user_privacy_setting_rules.rb +11 -0
- data/lib/tdlib/types/user_status.rb +15 -0
- data/lib/tdlib/types/user_status/empty.rb +5 -0
- data/lib/tdlib/types/user_status/last_month.rb +5 -0
- data/lib/tdlib/types/user_status/last_week.rb +5 -0
- data/lib/tdlib/types/user_status/offline.rb +8 -0
- data/lib/tdlib/types/user_status/online.rb +8 -0
- data/lib/tdlib/types/user_status/recently.rb +5 -0
- data/lib/tdlib/types/user_type.rb +14 -0
- data/lib/tdlib/types/user_type/bot.rb +18 -0
- data/lib/tdlib/types/user_type/deleted.rb +7 -0
- data/lib/tdlib/types/user_type/regular.rb +5 -0
- data/lib/tdlib/types/user_type/unknown.rb +7 -0
- data/lib/tdlib/types/users.rb +10 -0
- data/lib/tdlib/types/validated_order_info.rb +11 -0
- data/lib/tdlib/types/vector_path_command.rb +11 -0
- data/lib/tdlib/types/vector_path_command/cubic_bezier_curve.rb +12 -0
- data/lib/tdlib/types/vector_path_command/line.rb +8 -0
- data/lib/tdlib/types/venue.rb +19 -0
- data/lib/tdlib/types/video.rb +28 -0
- data/lib/tdlib/types/video_note.rb +17 -0
- data/lib/tdlib/types/voice_chat.rb +14 -0
- data/lib/tdlib/types/voice_note.rb +16 -0
- data/lib/tdlib/types/web_page.rb +52 -0
- data/lib/tdlib/types/web_page_instant_view.rb +17 -0
- data/tdlib-schema.gemspec +43 -0
- metadata +1149 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A chat's has_scheduled_messages field has changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr has_scheduled_messages [Boolean] New value of has_scheduled_messages.
|
6
|
+
class Update::ChatHasScheduledMessages < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :has_scheduled_messages, TD::Types::Bool
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A chat was blocked or unblocked.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr is_blocked [Boolean] New value of is_blocked.
|
6
|
+
class Update::ChatIsBlocked < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :is_blocked, TD::Types::Bool
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A chat was marked as unread or was read.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr is_marked_as_unread [Boolean] New value of is_marked_as_unread.
|
6
|
+
class Update::ChatIsMarkedAsUnread < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :is_marked_as_unread, TD::Types::Bool
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The last message of a chat was changed.
|
3
|
+
# If last_message is null, then the last message in the chat became unknown.
|
4
|
+
# Some new unknown messages might be added to the chat in this case.
|
5
|
+
#
|
6
|
+
# @attr chat_id [Integer] Chat identifier.
|
7
|
+
# @attr last_message [TD::Types::Message, nil] The new last message in the chat; may be null.
|
8
|
+
# @attr positions [Array<TD::Types::ChatPosition>] The new chat positions in the chat lists.
|
9
|
+
class Update::ChatLastMessage < Update
|
10
|
+
attribute :chat_id, TD::Types::Integer
|
11
|
+
attribute :last_message, TD::Types::Message.optional.default(nil)
|
12
|
+
attribute :positions, TD::Types::Array.of(TD::Types::ChatPosition)
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# User rights changed in a chat; for bots only.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr actor_user_id [Integer] Identifier of the user, changing the rights.
|
6
|
+
# @attr date [Integer] Point in time (Unix timestamp) when the user rights was changed.
|
7
|
+
# @attr invite_link [TD::Types::ChatInviteLink, nil] If user has joined the chat using an invite link, the invite
|
8
|
+
# link; may be null.
|
9
|
+
# @attr old_chat_member [TD::Types::ChatMember] Previous chat member.
|
10
|
+
# @attr new_chat_member [TD::Types::ChatMember] New chat member.
|
11
|
+
class Update::ChatMember < Update
|
12
|
+
attribute :chat_id, TD::Types::Integer
|
13
|
+
attribute :actor_user_id, TD::Types::Integer
|
14
|
+
attribute :date, TD::Types::Integer
|
15
|
+
attribute :invite_link, TD::Types::ChatInviteLink.optional.default(nil)
|
16
|
+
attribute :old_chat_member, TD::Types::ChatMember
|
17
|
+
attribute :new_chat_member, TD::Types::ChatMember
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The message Time To Live setting for a chat was changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr message_ttl_setting [Integer] New value of message_ttl_setting.
|
6
|
+
class Update::ChatMessageTtlSetting < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :message_ttl_setting, TD::Types::Integer
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Notification settings for a chat were changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr notification_settings [TD::Types::ChatNotificationSettings] The new notification settings.
|
6
|
+
class Update::ChatNotificationSettings < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :notification_settings, TD::Types::ChatNotificationSettings
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The number of online group members has changed.
|
3
|
+
# This update with non-zero count is sent only for currently opened chats.
|
4
|
+
# There is no guarantee that it will be sent just after the count has changed.
|
5
|
+
#
|
6
|
+
# @attr chat_id [Integer] Identifier of the chat.
|
7
|
+
# @attr online_member_count [Integer] New number of online members in the chat, or 0 if unknown.
|
8
|
+
class Update::ChatOnlineMemberCount < Update
|
9
|
+
attribute :chat_id, TD::Types::Integer
|
10
|
+
attribute :online_member_count, TD::Types::Integer
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Chat permissions was changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr permissions [TD::Types::ChatPermissions] The new chat permissions.
|
6
|
+
class Update::ChatPermissions < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :permissions, TD::Types::ChatPermissions
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A chat photo was changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr photo [TD::Types::ChatPhotoInfo, nil] The new chat photo; may be null.
|
6
|
+
class Update::ChatPhoto < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :photo, TD::Types::ChatPhotoInfo.optional.default(nil)
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The position of a chat in a chat list has changed.
|
3
|
+
# Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent.
|
4
|
+
#
|
5
|
+
# @attr chat_id [Integer] Chat identifier.
|
6
|
+
# @attr position [TD::Types::ChatPosition] New chat position.
|
7
|
+
# If new order is 0, then the chat needs to be removed from the list.
|
8
|
+
class Update::ChatPosition < Update
|
9
|
+
attribute :chat_id, TD::Types::Integer
|
10
|
+
attribute :position, TD::Types::ChatPosition
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Incoming messages were read or number of unread messages has been changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr last_read_inbox_message_id [Integer] Identifier of the last read incoming message.
|
6
|
+
# @attr unread_count [Integer] The number of unread messages left in the chat.
|
7
|
+
class Update::ChatReadInbox < Update
|
8
|
+
attribute :chat_id, TD::Types::Integer
|
9
|
+
attribute :last_read_inbox_message_id, TD::Types::Integer
|
10
|
+
attribute :unread_count, TD::Types::Integer
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Outgoing messages were read.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr last_read_outbox_message_id [Integer] Identifier of last read outgoing message.
|
6
|
+
class Update::ChatReadOutbox < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :last_read_outbox_message_id, TD::Types::Integer
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The default chat reply markup was changed.
|
3
|
+
# Can occur because new messages with reply markup were received or because an old reply markup was hidden by the
|
4
|
+
# user.
|
5
|
+
#
|
6
|
+
# @attr chat_id [Integer] Chat identifier.
|
7
|
+
# @attr reply_markup_message_id [Integer] Identifier of the message from which reply markup needs to be used; 0 if
|
8
|
+
# there is no default custom reply markup in the chat.
|
9
|
+
class Update::ChatReplyMarkup < Update
|
10
|
+
attribute :chat_id, TD::Types::Integer
|
11
|
+
attribute :reply_markup_message_id, TD::Types::Integer
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The title of a chat was changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr title [String] The new chat title.
|
6
|
+
class Update::ChatTitle < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :title, TD::Types::String
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The chat unread_mention_count has changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr unread_mention_count [Integer] The number of unread mention messages left in the chat.
|
6
|
+
class Update::ChatUnreadMentionCount < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :unread_mention_count, TD::Types::Integer
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A chat voice chat state has changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr voice_chat [TD::Types::VoiceChat] New value of voice_chat.
|
6
|
+
class Update::ChatVoiceChat < Update
|
7
|
+
attribute :chat_id, TD::Types::Integer
|
8
|
+
attribute :voice_chat, TD::Types::VoiceChat
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The connection state has changed.
|
3
|
+
# This update must be used only to show a human-readable description of the connection state.
|
4
|
+
#
|
5
|
+
# @attr state [TD::Types::ConnectionState] The new connection state.
|
6
|
+
class Update::ConnectionState < Update
|
7
|
+
attribute :state, TD::Types::ConnectionState
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Some messages were deleted.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr message_ids [Array<Integer>] Identifiers of the deleted messages.
|
6
|
+
# @attr is_permanent [Boolean] True, if the messages are permanently deleted by a user (as opposed to just becoming
|
7
|
+
# inaccessible).
|
8
|
+
# @attr from_cache [Boolean] True, if the messages are deleted only from the cache and can possibly be retrieved
|
9
|
+
# again in the future.
|
10
|
+
class Update::DeleteMessages < Update
|
11
|
+
attribute :chat_id, TD::Types::Integer
|
12
|
+
attribute :message_ids, TD::Types::Array.of(TD::Types::Integer)
|
13
|
+
attribute :is_permanent, TD::Types::Bool
|
14
|
+
attribute :from_cache, TD::Types::Bool
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,8 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The list of favorite stickers was updated.
|
3
|
+
#
|
4
|
+
# @attr sticker_ids [Array<Integer>] The new list of file identifiers of favorite stickers.
|
5
|
+
class Update::FavoriteStickers < Update
|
6
|
+
attribute :sticker_ids, TD::Types::Array.of(TD::Types::Integer)
|
7
|
+
end
|
8
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The file generation process needs to be started by the application.
|
3
|
+
#
|
4
|
+
# @attr generation_id [Integer] Unique identifier for the generation process.
|
5
|
+
# @attr original_path [String, nil] The path to a file from which a new file is generated; may be empty.
|
6
|
+
# @attr destination_path [String] The path to a file that should be created and where the new file should be
|
7
|
+
# generated.
|
8
|
+
# @attr conversion [String] String specifying the conversion applied to the original file.
|
9
|
+
# If conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file, which should be downloaded by
|
10
|
+
# the application.
|
11
|
+
class Update::FileGenerationStart < Update
|
12
|
+
attribute :generation_id, TD::Types::Integer
|
13
|
+
attribute :original_path, TD::Types::String.optional.default(nil)
|
14
|
+
attribute :destination_path, TD::Types::String
|
15
|
+
attribute :conversion, TD::Types::String
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Information about a group call participant was changed.
|
3
|
+
# The updates are sent only after the group call is received through getGroupCall and only if the call is joined or
|
4
|
+
# being joined.
|
5
|
+
#
|
6
|
+
# @attr group_call_id [Integer] Identifier of group call.
|
7
|
+
# @attr participant [TD::Types::GroupCallParticipant] New data about a participant.
|
8
|
+
class Update::GroupCallParticipant < Update
|
9
|
+
attribute :group_call_id, TD::Types::Integer
|
10
|
+
attribute :participant, TD::Types::GroupCallParticipant
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Describes whether there are some pending notification updates.
|
3
|
+
# Can be used to prevent application from killing, while there are some pending notifications.
|
4
|
+
#
|
5
|
+
# @attr have_delayed_notifications [Boolean] True, if there are some delayed notification updates, which will be sent
|
6
|
+
# soon.
|
7
|
+
# @attr have_unreceived_notifications [Boolean] True, if there can be some yet unreceived notifications, which are
|
8
|
+
# being fetched from the server.
|
9
|
+
class Update::HavePendingNotifications < Update
|
10
|
+
attribute :have_delayed_notifications, TD::Types::Bool
|
11
|
+
attribute :have_unreceived_notifications, TD::Types::Bool
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The list of installed sticker sets was updated.
|
3
|
+
#
|
4
|
+
# @attr is_masks [Boolean] True, if the list of installed mask sticker sets was updated.
|
5
|
+
# @attr sticker_set_ids [Array<Integer>] The new list of installed ordinary sticker sets.
|
6
|
+
class Update::InstalledStickerSets < Update
|
7
|
+
attribute :is_masks, TD::Types::Bool
|
8
|
+
attribute :sticker_set_ids, TD::Types::Array.of(TD::Types::Integer)
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Some language pack strings have been updated.
|
3
|
+
#
|
4
|
+
# @attr localization_target [String] Localization target to which the language pack belongs.
|
5
|
+
# @attr language_pack_id [String] Identifier of the updated language pack.
|
6
|
+
# @attr strings [Array<TD::Types::LanguagePackString>] List of changed language pack strings.
|
7
|
+
class Update::LanguagePackStrings < Update
|
8
|
+
attribute :localization_target, TD::Types::String
|
9
|
+
attribute :language_pack_id, TD::Types::String
|
10
|
+
attribute :strings, TD::Types::Array.of(TD::Types::LanguagePackString)
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The message content has changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr message_id [Integer] Message identifier.
|
6
|
+
# @attr new_content [TD::Types::MessageContent] New message content.
|
7
|
+
class Update::MessageContent < Update
|
8
|
+
attribute :chat_id, TD::Types::Integer
|
9
|
+
attribute :message_id, TD::Types::Integer
|
10
|
+
attribute :new_content, TD::Types::MessageContent
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The message content was opened.
|
3
|
+
# Updates voice note messages to "listened", video note messages to "viewed" and starts the TTL timer for
|
4
|
+
# self-destructing messages.
|
5
|
+
#
|
6
|
+
# @attr chat_id [Integer] Chat identifier.
|
7
|
+
# @attr message_id [Integer] Message identifier.
|
8
|
+
class Update::MessageContentOpened < Update
|
9
|
+
attribute :chat_id, TD::Types::Integer
|
10
|
+
attribute :message_id, TD::Types::Integer
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A message was edited.
|
3
|
+
# Changes in the message content will come in a separate updateMessageContent.
|
4
|
+
#
|
5
|
+
# @attr chat_id [Integer] Chat identifier.
|
6
|
+
# @attr message_id [Integer] Message identifier.
|
7
|
+
# @attr edit_date [Integer] Point in time (Unix timestamp) when the message was edited.
|
8
|
+
# @attr reply_markup [TD::Types::ReplyMarkup, nil] New message reply markup; may be null.
|
9
|
+
class Update::MessageEdited < Update
|
10
|
+
attribute :chat_id, TD::Types::Integer
|
11
|
+
attribute :message_id, TD::Types::Integer
|
12
|
+
attribute :edit_date, TD::Types::Integer
|
13
|
+
attribute :reply_markup, TD::Types::ReplyMarkup.optional.default(nil)
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The information about interactions with a message has changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr message_id [Integer] Message identifier.
|
6
|
+
# @attr interaction_info [TD::Types::MessageInteractionInfo, nil] New information about interactions with the
|
7
|
+
# message; may be null.
|
8
|
+
class Update::MessageInteractionInfo < Update
|
9
|
+
attribute :chat_id, TD::Types::Integer
|
10
|
+
attribute :message_id, TD::Types::Integer
|
11
|
+
attribute :interaction_info, TD::Types::MessageInteractionInfo.optional.default(nil)
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The message pinned state was changed.
|
3
|
+
#
|
4
|
+
# @attr chat_id [Integer] Chat identifier.
|
5
|
+
# @attr message_id [Integer] The message identifier.
|
6
|
+
# @attr is_pinned [Boolean] True, if the message is pinned.
|
7
|
+
class Update::MessageIsPinned < Update
|
8
|
+
attribute :chat_id, TD::Types::Integer
|
9
|
+
attribute :message_id, TD::Types::Integer
|
10
|
+
attribute :is_pinned, TD::Types::Bool
|
11
|
+
end
|
12
|
+
end
|