tdlib-ruby 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.gitmodules +3 -0
- data/.travis.yml +2 -3
- data/ChangeLog.md +9 -0
- data/README.md +49 -46
- data/bin/build +12 -0
- data/bin/parser +447 -0
- data/lib/tdlib-ruby.rb +4 -1
- data/lib/tdlib/api.rb +20 -15
- data/lib/tdlib/client.rb +121 -123
- data/lib/tdlib/client_methods.rb +3474 -0
- data/lib/tdlib/errors.rb +29 -5
- data/lib/tdlib/types.rb +884 -0
- data/lib/tdlib/types/account_ttl.rb +10 -0
- data/lib/tdlib/types/address.rb +18 -0
- data/lib/tdlib/types/animation.rb +21 -0
- data/lib/tdlib/types/animations.rb +8 -0
- data/lib/tdlib/types/audio.rb +22 -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 +8 -0
- data/lib/tdlib/types/authorization_state.rb +18 -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 +13 -0
- data/lib/tdlib/types/authorization_state/wait_encryption_key.rb +8 -0
- data/lib/tdlib/types/authorization_state/wait_password.rb +13 -0
- data/lib/tdlib/types/authorization_state/wait_phone_number.rb +5 -0
- data/lib/tdlib/types/authorization_state/wait_tdlib_parameters.rb +5 -0
- data/lib/tdlib/types/base.rb +29 -0
- data/lib/tdlib/types/basic_group.rb +18 -0
- data/lib/tdlib/types/basic_group_full_info.rb +13 -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 +14 -0
- data/lib/tdlib/types/call_connection.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_protocol.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 +16 -0
- data/lib/tdlib/types/callback_query_answer.rb +12 -0
- data/lib/tdlib/types/callback_query_payload.rb +11 -0
- data/lib/tdlib/types/callback_query_payload/data.rb +8 -0
- data/lib/tdlib/types/callback_query_payload/game.rb +8 -0
- data/lib/tdlib/types/chat.rb +51 -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_event.rb +14 -0
- data/lib/tdlib/types/chat_event_action.rb +26 -0
- data/lib/tdlib/types/chat_event_action/description_changed.rb +10 -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/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_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_unpinned.rb +5 -0
- data/lib/tdlib/types/chat_event_action/photo_changed.rb +10 -0
- data/lib/tdlib/types/chat_event_action/sign_messages_toggled.rb +8 -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_log_filters.rb +27 -0
- data/lib/tdlib/types/chat_events.rb +8 -0
- data/lib/tdlib/types/chat_invite_link.rb +8 -0
- data/lib/tdlib/types/chat_invite_link_info.rb +20 -0
- data/lib/tdlib/types/chat_member.rb +18 -0
- data/lib/tdlib/types/chat_member_status.rb +15 -0
- data/lib/tdlib/types/chat_member_status/administrator.rb +29 -0
- data/lib/tdlib/types/chat_member_status/banned.rb +11 -0
- data/lib/tdlib/types/chat_member_status/creator.rb +8 -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 +27 -0
- data/lib/tdlib/types/chat_members.rb +10 -0
- data/lib/tdlib/types/chat_members_filter.rb +14 -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/members.rb +5 -0
- data/lib/tdlib/types/chat_members_filter/restricted.rb +5 -0
- data/lib/tdlib/types/chat_notification_settings.rb +22 -0
- data/lib/tdlib/types/chat_photo.rb +10 -0
- data/lib/tdlib/types/chat_report_reason.rb +14 -0
- data/lib/tdlib/types/chat_report_reason/copyright.rb +5 -0
- data/lib/tdlib/types/chat_report_reason/custom.rb +8 -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/violence.rb +5 -0
- data/lib/tdlib/types/chat_report_spam_state.rb +8 -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 +8 -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/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/custom_request_result.rb +8 -0
- data/lib/tdlib/types/date.rb +12 -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 +10 -0
- data/lib/tdlib/types/device_token/black_berry_push.rb +8 -0
- data/lib/tdlib/types/device_token/google_cloud_messaging.rb +8 -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/document.rb +14 -0
- data/lib/tdlib/types/draft_message.rb +11 -0
- data/lib/tdlib/types/email_address_authentication_code_info.rb +10 -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_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 +10 -0
- data/lib/tdlib/types/found_messages.rb +10 -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/hashtags.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 +14 -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/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_credentials.rb +13 -0
- data/lib/tdlib/types/input_credentials/android_pay.rb +8 -0
- data/lib/tdlib/types/input_credentials/apple_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 +14 -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 +8 -0
- data/lib/tdlib/types/input_identity_document.rb +19 -0
- data/lib/tdlib/types/input_inline_query_result.rb +22 -0
- data/lib/tdlib/types/input_inline_query_result/animated_gif.rb +26 -0
- data/lib/tdlib/types/input_inline_query_result/animated_mpeg4.rb +27 -0
- data/lib/tdlib/types/input_inline_query_result/article.rb +28 -0
- data/lib/tdlib/types/input_inline_query_result/audio.rb +22 -0
- data/lib/tdlib/types/input_inline_query_result/contact.rb +22 -0
- data/lib/tdlib/types/input_inline_query_result/document.rb +29 -0
- data/lib/tdlib/types/input_inline_query_result/game.rb +12 -0
- data/lib/tdlib/types/input_inline_query_result/location.rb +27 -0
- data/lib/tdlib/types/input_inline_query_result/photo.rb +25 -0
- data/lib/tdlib/types/input_inline_query_result/sticker.rb +22 -0
- data/lib/tdlib/types/input_inline_query_result/venue.rb +22 -0
- data/lib/tdlib/types/input_inline_query_result/video.rb +31 -0
- data/lib/tdlib/types/input_inline_query_result/voice_note.rb +20 -0
- data/lib/tdlib/types/input_message_content.rb +24 -0
- data/lib/tdlib/types/input_message_content/animation.rb +18 -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/document.rb +12 -0
- data/lib/tdlib/types/input_message_content/forwarded.rb +13 -0
- data/lib/tdlib/types/input_message_content/game.rb +10 -0
- data/lib/tdlib/types/input_message_content/invoice.rb +28 -0
- data/lib/tdlib/types/input_message_content/location.rb +11 -0
- data/lib/tdlib/types/input_message_content/photo.rb +22 -0
- data/lib/tdlib/types/input_message_content/sticker.rb +14 -0
- data/lib/tdlib/types/input_message_content/text.rb +14 -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 +14 -0
- data/lib/tdlib/types/input_thumbnail.rb +16 -0
- data/lib/tdlib/types/invoice.rb +27 -0
- data/lib/tdlib/types/keyboard_button.rb +10 -0
- data/lib/tdlib/types/keyboard_button_type.rb +12 -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/text.rb +5 -0
- data/lib/tdlib/types/labeled_price_part.rb +10 -0
- data/lib/tdlib/types/language_pack_info.rb +14 -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 +18 -0
- data/lib/tdlib/types/language_pack_strings.rb +8 -0
- data/lib/tdlib/types/link_state.rb +13 -0
- data/lib/tdlib/types/link_state/is_contact.rb +5 -0
- data/lib/tdlib/types/link_state/knows_phone_number.rb +5 -0
- data/lib/tdlib/types/link_state/none.rb +5 -0
- data/lib/tdlib/types/local_file.rb +25 -0
- data/lib/tdlib/types/localization_target_info.rb +8 -0
- data/lib/tdlib/types/location.rb +10 -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 +59 -0
- data/lib/tdlib/types/message_content.rb +48 -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 +10 -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/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/invoice.rb +26 -0
- data/lib/tdlib/types/message_content/location.rb +14 -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 +13 -0
- data/lib/tdlib/types/message_content/payment_successful_bot.rb +24 -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/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_note.rb +12 -0
- data/lib/tdlib/types/message_content/website_connected.rb +8 -0
- data/lib/tdlib/types/message_forward_info.rb +11 -0
- data/lib/tdlib/types/message_forward_info/message_forwarded_from_user.rb +16 -0
- data/lib/tdlib/types/message_forward_info/message_forwarded_post.rb +21 -0
- data/lib/tdlib/types/message_sending_state.rb +11 -0
- data/lib/tdlib/types/message_sending_state/failed.rb +5 -0
- data/lib/tdlib/types/message_sending_state/pending.rb +5 -0
- data/lib/tdlib/types/messages.rb +10 -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_settings_scope.rb +11 -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/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 +32 -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/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/list.rb +10 -0
- data/lib/tdlib/types/page_block/paragraph.rb +8 -0
- data/lib/tdlib/types/page_block/photo.rb +10 -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/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/title.rb +8 -0
- data/lib/tdlib/types/page_block/video.rb +14 -0
- data/lib/tdlib/types/passport_authorization_form.rb +17 -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 +6 -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 +6 -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_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 +23 -0
- data/lib/tdlib/types/payment_receipt.rb +18 -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/photo.rb +12 -0
- data/lib/tdlib/types/photo_size.rb +14 -0
- data/lib/tdlib/types/profile_photo.rb +13 -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_message_link.rb +10 -0
- data/lib/tdlib/types/recovery_email_address.rb +8 -0
- data/lib/tdlib/types/remote_file.rb +22 -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 +18 -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/italic.rb +8 -0
- data/lib/tdlib/types/rich_text/plain.rb +8 -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/underline.rb +8 -0
- data/lib/tdlib/types/rich_text/url.rb +10 -0
- data/lib/tdlib/types/saved_credentials.rb +10 -0
- data/lib/tdlib/types/scope_notification_settings.rb +13 -0
- data/lib/tdlib/types/search_messages_filter.rb +25 -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/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/unread_mention.rb +6 -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 +26 -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 +39 -0
- data/lib/tdlib/types/sessions.rb +8 -0
- data/lib/tdlib/types/shipping_option.rb +13 -0
- data/lib/tdlib/types/sticker.rb +22 -0
- data/lib/tdlib/types/sticker_emojis.rb +10 -0
- data/lib/tdlib/types/sticker_set.rb +27 -0
- data/lib/tdlib/types/sticker_set_info.rb +29 -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 +12 -0
- data/lib/tdlib/types/supergroup.rb +40 -0
- data/lib/tdlib/types/supergroup_full_info.rb +39 -0
- data/lib/tdlib/types/supergroup_members_filter.rb +15 -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/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 +46 -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 +23 -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/text_url.rb +8 -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 +5 -0
- data/lib/tdlib/types/text_parse_mode/markdown.rb +5 -0
- data/lib/tdlib/types/top_chat_category.rb +15 -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/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 +70 -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_default_disable_notification.rb +10 -0
- data/lib/tdlib/types/update/chat_draft_message.rb +14 -0
- data/lib/tdlib/types/update/chat_is_marked_as_unread.rb +10 -0
- data/lib/tdlib/types/update/chat_is_pinned.rb +12 -0
- data/lib/tdlib/types/update/chat_is_sponsored.rb +12 -0
- data/lib/tdlib/types/update/chat_last_message.rb +14 -0
- data/lib/tdlib/types/update/chat_notification_settings.rb +10 -0
- data/lib/tdlib/types/update/chat_order.rb +11 -0
- data/lib/tdlib/types/update/chat_photo.rb +10 -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/connection_state.rb +8 -0
- data/lib/tdlib/types/update/delete_messages.rb +16 -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/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_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/message_views.rb +12 -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 +16 -0
- data/lib/tdlib/types/update/new_message.rb +12 -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/option.rb +10 -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/service_notification.rb +13 -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 +8 -0
- data/lib/tdlib/types/update/unread_chat_count.rb +16 -0
- data/lib/tdlib/types/update/unread_message_count.rb +11 -0
- data/lib/tdlib/types/update/user.rb +9 -0
- data/lib/tdlib/types/update/user_chat_action.rb +12 -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/user.rb +41 -0
- data/lib/tdlib/types/user_full_info.rb +21 -0
- data/lib/tdlib/types/user_privacy_setting.rb +12 -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/show_status.rb +5 -0
- data/lib/tdlib/types/user_privacy_setting_rule.rb +15 -0
- data/lib/tdlib/types/user_privacy_setting_rule/allow_all.rb +5 -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_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_profile_photos.rb +10 -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/venue.rb +19 -0
- data/lib/tdlib/types/video.rb +24 -0
- data/lib/tdlib/types/video_note.rb +15 -0
- data/lib/tdlib/types/voice_note.rb +16 -0
- data/lib/tdlib/types/wallpaper.rb +14 -0
- data/lib/tdlib/types/wallpapers.rb +8 -0
- data/lib/tdlib/types/web_page.rb +51 -0
- data/lib/tdlib/types/web_page_instant_view.rb +11 -0
- data/lib/tdlib/update_handler.rb +36 -0
- data/lib/tdlib/update_manager.rb +21 -11
- data/lib/tdlib/version.rb +1 -1
- data/spec/integration/tdlib_spec.rb +20 -15
- data/tdlib-ruby.gemspec +7 -12
- metadata +720 -9
- data/lib/tdlib/utils.rb +0 -7
@@ -0,0 +1,22 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents a user contact.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr contact [TD::Types::Contact] User contact.
|
6
|
+
# @attr thumbnail_url [String] URL of the result thumbnail, if it exists.
|
7
|
+
# @attr thumbnail_width [Integer] Thumbnail width, if known.
|
8
|
+
# @attr thumbnail_height [Integer] Thumbnail height, if known.
|
9
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] The message reply markup.
|
10
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::Location,
|
11
|
+
# TD::Types::InputMessageContent::Venue, TD::Types::InputMessageContent::Contact] The content of the message to be
|
12
|
+
# sent.
|
13
|
+
class InputInlineQueryResult::Contact < InputInlineQueryResult
|
14
|
+
attribute :id, TD::Types::String
|
15
|
+
attribute :contact, TD::Types::Contact
|
16
|
+
attribute :thumbnail_url, TD::Types::String
|
17
|
+
attribute :thumbnail_width, TD::Types::Integer
|
18
|
+
attribute :thumbnail_height, TD::Types::Integer
|
19
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
20
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents a link to a file.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr title [String] Title of the resulting file.
|
6
|
+
# @attr description [String] Short description of the result, if known.
|
7
|
+
# @attr document_url [String] URL of the file.
|
8
|
+
# @attr mime_type [String] MIME type of the file content; only "application/pdf" and "application/zip" are currently
|
9
|
+
# allowed.
|
10
|
+
# @attr thumbnail_url [String] The URL of the file thumbnail, if it exists.
|
11
|
+
# @attr thumbnail_width [Integer] Width of the thumbnail.
|
12
|
+
# @attr thumbnail_height [Integer] Height of the thumbnail.
|
13
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] The message reply markup.
|
14
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::Document,
|
15
|
+
# TD::Types::InputMessageContent::Location, TD::Types::InputMessageContent::Venue,
|
16
|
+
# TD::Types::InputMessageContent::Contact] The content of the message to be sent.
|
17
|
+
class InputInlineQueryResult::Document < InputInlineQueryResult
|
18
|
+
attribute :id, TD::Types::String
|
19
|
+
attribute :title, TD::Types::String
|
20
|
+
attribute :description, TD::Types::String
|
21
|
+
attribute :document_url, TD::Types::String
|
22
|
+
attribute :mime_type, TD::Types::String
|
23
|
+
attribute :thumbnail_url, TD::Types::String
|
24
|
+
attribute :thumbnail_width, TD::Types::Integer
|
25
|
+
attribute :thumbnail_height, TD::Types::Integer
|
26
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
27
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents a game.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr game_short_name [String] Short name of the game.
|
6
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] Message reply markup.
|
7
|
+
class InputInlineQueryResult::Game < InputInlineQueryResult
|
8
|
+
attribute :id, TD::Types::String
|
9
|
+
attribute :game_short_name, TD::Types::String
|
10
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents a point on the map.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr location [TD::Types::Location] Location result.
|
6
|
+
# @attr live_period [Integer] Amount of time relative to the message sent time until the location can be updated, in
|
7
|
+
# seconds.
|
8
|
+
# @attr title [String] Title of the result.
|
9
|
+
# @attr thumbnail_url [String] URL of the result thumbnail, if it exists.
|
10
|
+
# @attr thumbnail_width [Integer] Thumbnail width, if known.
|
11
|
+
# @attr thumbnail_height [Integer] Thumbnail height, if known.
|
12
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] The message reply markup.
|
13
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::Location,
|
14
|
+
# TD::Types::InputMessageContent::Venue, TD::Types::InputMessageContent::Contact] The content of the message to be
|
15
|
+
# sent.
|
16
|
+
class InputInlineQueryResult::Location < InputInlineQueryResult
|
17
|
+
attribute :id, TD::Types::String
|
18
|
+
attribute :location, TD::Types::Location
|
19
|
+
attribute :live_period, TD::Types::Integer
|
20
|
+
attribute :title, TD::Types::String
|
21
|
+
attribute :thumbnail_url, TD::Types::String
|
22
|
+
attribute :thumbnail_width, TD::Types::Integer
|
23
|
+
attribute :thumbnail_height, TD::Types::Integer
|
24
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
25
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents link to a JPEG image.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr title [String] Title of the result, if known.
|
6
|
+
# @attr description [String] A short description of the result, if known.
|
7
|
+
# @attr thumbnail_url [String] URL of the photo thumbnail, if it exists.
|
8
|
+
# @attr photo_url [String] The URL of the JPEG photo (photo size must not exceed 5MB).
|
9
|
+
# @attr photo_width [Integer] Width of the photo.
|
10
|
+
# @attr photo_height [Integer] Height of the photo.
|
11
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::Photo,
|
12
|
+
# TD::Types::InputMessageContent::Location, TD::Types::InputMessageContent::Venue,
|
13
|
+
# TD::Types::InputMessageContent::Contact] The content of the message to be sent.
|
14
|
+
class InputInlineQueryResult::Photo < InputInlineQueryResult
|
15
|
+
attribute :id, TD::Types::String
|
16
|
+
attribute :title, TD::Types::String
|
17
|
+
attribute :description, TD::Types::String
|
18
|
+
attribute :thumbnail_url, TD::Types::String
|
19
|
+
attribute :photo_url, TD::Types::String
|
20
|
+
attribute :photo_width, TD::Types::Integer
|
21
|
+
attribute :photo_height, TD::Types::Integer
|
22
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
23
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents a link to a WEBP sticker.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr thumbnail_url [String] URL of the sticker thumbnail, if it exists.
|
6
|
+
# @attr sticker_url [String] The URL of the WEBP sticker (sticker file size must not exceed 5MB).
|
7
|
+
# @attr sticker_width [Integer] Width of the sticker.
|
8
|
+
# @attr sticker_height [Integer] Height of the sticker.
|
9
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] The message reply markup.
|
10
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::Sticker,
|
11
|
+
# TD::Types::InputMessageContent::Location, TD::Types::InputMessageContent::Venue,
|
12
|
+
# TD::Types::InputMessageContent::Contact] The content of the message to be sent.
|
13
|
+
class InputInlineQueryResult::Sticker < InputInlineQueryResult
|
14
|
+
attribute :id, TD::Types::String
|
15
|
+
attribute :thumbnail_url, TD::Types::String
|
16
|
+
attribute :sticker_url, TD::Types::String
|
17
|
+
attribute :sticker_width, TD::Types::Integer
|
18
|
+
attribute :sticker_height, TD::Types::Integer
|
19
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
20
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents information about a venue.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr venue [TD::Types::Venue] Venue result.
|
6
|
+
# @attr thumbnail_url [String] URL of the result thumbnail, if it exists.
|
7
|
+
# @attr thumbnail_width [Integer] Thumbnail width, if known.
|
8
|
+
# @attr thumbnail_height [Integer] Thumbnail height, if known.
|
9
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] The message reply markup.
|
10
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::Location,
|
11
|
+
# TD::Types::InputMessageContent::Venue, TD::Types::InputMessageContent::Contact] The content of the message to be
|
12
|
+
# sent.
|
13
|
+
class InputInlineQueryResult::Venue < InputInlineQueryResult
|
14
|
+
attribute :id, TD::Types::String
|
15
|
+
attribute :venue, TD::Types::Venue
|
16
|
+
attribute :thumbnail_url, TD::Types::String
|
17
|
+
attribute :thumbnail_width, TD::Types::Integer
|
18
|
+
attribute :thumbnail_height, TD::Types::Integer
|
19
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
20
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents a link to a page containing an embedded video player or a video file.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr title [String] Title of the result.
|
6
|
+
# @attr description [String] A short description of the result, if known.
|
7
|
+
# @attr thumbnail_url [String] The URL of the video thumbnail (JPEG), if it exists.
|
8
|
+
# @attr video_url [String] URL of the embedded video player or video file.
|
9
|
+
# @attr mime_type [String] MIME type of the content of the video URL, only "text/html" or "video/mp4" are currently
|
10
|
+
# supported.
|
11
|
+
# @attr video_width [Integer] Width of the video.
|
12
|
+
# @attr video_height [Integer] Height of the video.
|
13
|
+
# @attr video_duration [Integer] Video duration, in seconds.
|
14
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] The message reply markup.
|
15
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::Video,
|
16
|
+
# TD::Types::InputMessageContent::Location, TD::Types::InputMessageContent::Venue,
|
17
|
+
# TD::Types::InputMessageContent::Contact] The content of the message to be sent.
|
18
|
+
class InputInlineQueryResult::Video < InputInlineQueryResult
|
19
|
+
attribute :id, TD::Types::String
|
20
|
+
attribute :title, TD::Types::String
|
21
|
+
attribute :description, TD::Types::String
|
22
|
+
attribute :thumbnail_url, TD::Types::String
|
23
|
+
attribute :video_url, TD::Types::String
|
24
|
+
attribute :mime_type, TD::Types::String
|
25
|
+
attribute :video_width, TD::Types::Integer
|
26
|
+
attribute :video_height, TD::Types::Integer
|
27
|
+
attribute :video_duration, TD::Types::Integer
|
28
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
29
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# Represents a link to an opus-encoded audio file within an OGG container, single channel audio.
|
3
|
+
#
|
4
|
+
# @attr id [String] Unique identifier of the query result.
|
5
|
+
# @attr title [String] Title of the voice note.
|
6
|
+
# @attr voice_note_url [String] The URL of the voice note file.
|
7
|
+
# @attr voice_note_duration [Integer] Duration of the voice note, in seconds.
|
8
|
+
# @attr reply_markup [TD::Types::ReplyMarkup::InlineKeyboard, nil] The message reply markup.
|
9
|
+
# @attr input_message_content [TD::Types::InputMessageContent::Text, TD::Types::InputMessageContent::VoiceNote,
|
10
|
+
# TD::Types::InputMessageContent::Location, TD::Types::InputMessageContent::Venue,
|
11
|
+
# TD::Types::InputMessageContent::Contact] The content of the message to be sent.
|
12
|
+
class InputInlineQueryResult::VoiceNote < InputInlineQueryResult
|
13
|
+
attribute :id, TD::Types::String
|
14
|
+
attribute :title, TD::Types::String
|
15
|
+
attribute :voice_note_url, TD::Types::String
|
16
|
+
attribute :voice_note_duration, TD::Types::Integer
|
17
|
+
attribute :reply_markup, TD::Types::ReplyMarkup
|
18
|
+
attribute :input_message_content, TD::Types::InputMessageContent
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# The content of a message to send.
|
3
|
+
class InputMessageContent < Base
|
4
|
+
%w[
|
5
|
+
text
|
6
|
+
animation
|
7
|
+
audio
|
8
|
+
document
|
9
|
+
photo
|
10
|
+
sticker
|
11
|
+
video
|
12
|
+
video_note
|
13
|
+
voice_note
|
14
|
+
location
|
15
|
+
venue
|
16
|
+
contact
|
17
|
+
game
|
18
|
+
invoice
|
19
|
+
forwarded
|
20
|
+
].each do |type|
|
21
|
+
autoload TD::Types.camelize(type), "tdlib/types/input_message_content/#{type}"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# An animation message (GIF-style)..
|
3
|
+
#
|
4
|
+
# @attr animation [TD::Types::InputFile] Animation file to be sent.
|
5
|
+
# @attr thumbnail [TD::Types::InputThumbnail, nil] Animation thumbnail, if available.
|
6
|
+
# @attr duration [Integer] Duration of the animation, in seconds.
|
7
|
+
# @attr width [Integer] Width of the animation; may be replaced by the server.
|
8
|
+
# @attr height [Integer] Height of the animation; may be replaced by the server.
|
9
|
+
# @attr caption [TD::Types::FormattedText] Animation caption; 0-GetOption("message_caption_length_max") characters.
|
10
|
+
class InputMessageContent::Animation < InputMessageContent
|
11
|
+
attribute :animation, TD::Types::InputFile
|
12
|
+
attribute :thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
13
|
+
attribute :duration, TD::Types::Integer
|
14
|
+
attribute :width, TD::Types::Integer
|
15
|
+
attribute :height, TD::Types::Integer
|
16
|
+
attribute :caption, TD::Types::FormattedText
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# An audio message.
|
3
|
+
#
|
4
|
+
# @attr audio [TD::Types::InputFile] Audio file to be sent.
|
5
|
+
# @attr album_cover_thumbnail [TD::Types::InputThumbnail, nil] Thumbnail of the cover for the album, if available.
|
6
|
+
# @attr duration [Integer] Duration of the audio, in seconds; may be replaced by the server.
|
7
|
+
# @attr title [String] Title of the audio; 0-64 characters; may be replaced by the server.
|
8
|
+
# @attr performer [String] Performer of the audio; 0-64 characters, may be replaced by the server.
|
9
|
+
# @attr caption [TD::Types::FormattedText] Audio caption; 0-GetOption("message_caption_length_max") characters.
|
10
|
+
class InputMessageContent::Audio < InputMessageContent
|
11
|
+
attribute :audio, TD::Types::InputFile
|
12
|
+
attribute :album_cover_thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
13
|
+
attribute :duration, TD::Types::Integer
|
14
|
+
attribute :title, TD::Types::String
|
15
|
+
attribute :performer, TD::Types::String
|
16
|
+
attribute :caption, TD::Types::FormattedText
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A document message (general file).
|
3
|
+
#
|
4
|
+
# @attr document [TD::Types::InputFile] Document to be sent.
|
5
|
+
# @attr thumbnail [TD::Types::InputThumbnail, nil] Document thumbnail, if available.
|
6
|
+
# @attr caption [TD::Types::FormattedText] Document caption; 0-GetOption("message_caption_length_max") characters.
|
7
|
+
class InputMessageContent::Document < InputMessageContent
|
8
|
+
attribute :document, TD::Types::InputFile
|
9
|
+
attribute :thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
10
|
+
attribute :caption, TD::Types::FormattedText
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A forwarded message.
|
3
|
+
#
|
4
|
+
# @attr from_chat_id [Integer] Identifier for the chat this forwarded message came from.
|
5
|
+
# @attr message_id [Integer] Identifier of the message to forward.
|
6
|
+
# @attr in_game_share [Boolean] True, if a game message should be shared within a launched game; applies only to game
|
7
|
+
# messages.
|
8
|
+
class InputMessageContent::Forwarded < InputMessageContent
|
9
|
+
attribute :from_chat_id, TD::Types::Integer
|
10
|
+
attribute :message_id, TD::Types::Integer
|
11
|
+
attribute :in_game_share, TD::Types::Bool
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A message with a game; not supported for channels or secret chats.
|
3
|
+
#
|
4
|
+
# @attr bot_user_id [Integer] User identifier of the bot that owns the game.
|
5
|
+
# @attr game_short_name [String] Short name of the game.
|
6
|
+
class InputMessageContent::Game < InputMessageContent
|
7
|
+
attribute :bot_user_id, TD::Types::Integer
|
8
|
+
attribute :game_short_name, TD::Types::String
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A message with an invoice; can be used only by bots and only in private chats.
|
3
|
+
#
|
4
|
+
# @attr invoice [TD::Types::Invoice] Invoice.
|
5
|
+
# @attr title [String] Product title; 1-32 characters.
|
6
|
+
# @attr description [String] Product description; 0-255 characters.
|
7
|
+
# @attr photo_url [String, nil] Product photo URL; optional.
|
8
|
+
# @attr photo_size [Integer] Product photo size.
|
9
|
+
# @attr photo_width [Integer] Product photo width.
|
10
|
+
# @attr photo_height [Integer] Product photo height.
|
11
|
+
# @attr payload [String] The invoice payload.
|
12
|
+
# @attr provider_token [String] Payment provider token.
|
13
|
+
# @attr provider_data [String] JSON-encoded data about the invoice, which will be shared with the payment provider.
|
14
|
+
# @attr start_parameter [String] Unique invoice bot start_parameter for the generation of this invoice.
|
15
|
+
class InputMessageContent::Invoice < InputMessageContent
|
16
|
+
attribute :invoice, TD::Types::Invoice
|
17
|
+
attribute :title, TD::Types::String
|
18
|
+
attribute :description, TD::Types::String
|
19
|
+
attribute :photo_url, TD::Types::String.optional.default(nil)
|
20
|
+
attribute :photo_size, TD::Types::Integer
|
21
|
+
attribute :photo_width, TD::Types::Integer
|
22
|
+
attribute :photo_height, TD::Types::Integer
|
23
|
+
attribute :payload, TD::Types::String
|
24
|
+
attribute :provider_token, TD::Types::String
|
25
|
+
attribute :provider_data, TD::Types::String
|
26
|
+
attribute :start_parameter, TD::Types::String
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A message with a location.
|
3
|
+
#
|
4
|
+
# @attr location [TD::Types::Location] Location to be sent.
|
5
|
+
# @attr live_period [Integer] Period for which the location can be updated, in seconds; should bebetween 60 and 86400
|
6
|
+
# for a live location and 0 otherwise.
|
7
|
+
class InputMessageContent::Location < InputMessageContent
|
8
|
+
attribute :location, TD::Types::Location
|
9
|
+
attribute :live_period, TD::Types::Integer
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A photo message.
|
3
|
+
#
|
4
|
+
# @attr photo [TD::Types::InputFile] Photo to send.
|
5
|
+
# @attr thumbnail [TD::Types::InputThumbnail] Photo thumbnail to be sent, this is sent to the other party in secret
|
6
|
+
# chats only.
|
7
|
+
# @attr added_sticker_file_ids [Array<Integer>] File identifiers of the stickers added to the photo, if applicable.
|
8
|
+
# @attr width [Integer] Photo width.
|
9
|
+
# @attr height [Integer] Photo height.
|
10
|
+
# @attr caption [TD::Types::FormattedText] Photo caption; 0-GetOption("message_caption_length_max") characters.
|
11
|
+
# @attr ttl [Integer] Photo TTL (Time To Live), in seconds (0-60).
|
12
|
+
# A non-zero TTL can be specified only in private chats.
|
13
|
+
class InputMessageContent::Photo < InputMessageContent
|
14
|
+
attribute :photo, TD::Types::InputFile
|
15
|
+
attribute :thumbnail, TD::Types::InputThumbnail
|
16
|
+
attribute :added_sticker_file_ids, TD::Types::Array.of(TD::Types::Integer)
|
17
|
+
attribute :width, TD::Types::Integer
|
18
|
+
attribute :height, TD::Types::Integer
|
19
|
+
attribute :caption, TD::Types::FormattedText
|
20
|
+
attribute :ttl, TD::Types::Integer
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A sticker message.
|
3
|
+
#
|
4
|
+
# @attr sticker [TD::Types::InputFile] Sticker to be sent.
|
5
|
+
# @attr thumbnail [TD::Types::InputThumbnail, nil] Sticker thumbnail, if available.
|
6
|
+
# @attr width [Integer] Sticker width.
|
7
|
+
# @attr height [Integer] Sticker height.
|
8
|
+
class InputMessageContent::Sticker < InputMessageContent
|
9
|
+
attribute :sticker, TD::Types::InputFile
|
10
|
+
attribute :thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
11
|
+
attribute :width, TD::Types::Integer
|
12
|
+
attribute :height, TD::Types::Integer
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module TD::Types
|
2
|
+
# A text message.
|
3
|
+
#
|
4
|
+
# @attr text [TD::Types::FormattedText] Formatted text to be sent; 1-GetOption("message_text_length_max") characters.
|
5
|
+
# Only Bold, Italic, Code, Pre, PreCode and TextUrl entities are allowed to be specified manually.
|
6
|
+
# @attr disable_web_page_preview [Boolean] True, if rich web page previews for URLs in the message text should be
|
7
|
+
# disabled.
|
8
|
+
# @attr clear_draft [Boolean] True, if a chat message draft should be deleted.
|
9
|
+
class InputMessageContent::Text < InputMessageContent
|
10
|
+
attribute :text, TD::Types::FormattedText
|
11
|
+
attribute :disable_web_page_preview, TD::Types::Bool
|
12
|
+
attribute :clear_draft, TD::Types::Bool
|
13
|
+
end
|
14
|
+
end
|