tdlib-schema 1.7.0.1 → 1.7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/parser +6 -6
- data/lib/tdlib/client_methods.rb +171 -168
- data/lib/tdlib/types/account_ttl.rb +1 -1
- data/lib/tdlib/types/address.rb +6 -6
- data/lib/tdlib/types/animated_chat_photo.rb +2 -2
- data/lib/tdlib/types/animation.rb +5 -5
- data/lib/tdlib/types/audio.rb +5 -5
- data/lib/tdlib/types/authentication_code_info.rb +2 -2
- data/lib/tdlib/types/authentication_code_type/call.rb +1 -1
- data/lib/tdlib/types/authentication_code_type/flash_call.rb +1 -1
- data/lib/tdlib/types/authentication_code_type/sms.rb +1 -1
- data/lib/tdlib/types/authentication_code_type/telegram_message.rb +1 -1
- data/lib/tdlib/types/authorization_state/wait_other_device_confirmation.rb +1 -1
- data/lib/tdlib/types/authorization_state/wait_password.rb +3 -3
- data/lib/tdlib/types/auto_download_settings.rb +4 -4
- data/lib/tdlib/types/background.rb +2 -2
- data/lib/tdlib/types/background_fill/gradient.rb +3 -3
- data/lib/tdlib/types/background_fill/solid.rb +1 -1
- data/lib/tdlib/types/background_type/pattern.rb +1 -1
- data/lib/tdlib/types/bank_card_action_open_url.rb +2 -2
- data/lib/tdlib/types/bank_card_info.rb +1 -1
- data/lib/tdlib/types/basic_group.rb +3 -3
- data/lib/tdlib/types/basic_group_full_info.rb +2 -2
- data/lib/tdlib/types/bot_command.rb +2 -2
- data/lib/tdlib/types/bot_info.rb +1 -1
- data/lib/tdlib/types/call.rb +2 -2
- data/lib/tdlib/types/call_id.rb +1 -1
- data/lib/tdlib/types/call_protocol.rb +3 -3
- data/lib/tdlib/types/call_server.rb +4 -4
- data/lib/tdlib/types/call_server_type/telegram_reflector.rb +1 -1
- data/lib/tdlib/types/call_server_type/webrtc.rb +2 -2
- data/lib/tdlib/types/call_state/ready.rb +3 -3
- data/lib/tdlib/types/callback_query_answer.rb +2 -2
- data/lib/tdlib/types/callback_query_payload/data.rb +1 -1
- data/lib/tdlib/types/callback_query_payload/data_with_password.rb +2 -2
- data/lib/tdlib/types/callback_query_payload/game.rb +1 -1
- data/lib/tdlib/types/can_transfer_ownership_result/password_too_fresh.rb +1 -1
- data/lib/tdlib/types/can_transfer_ownership_result/session_too_fresh.rb +1 -1
- data/lib/tdlib/types/chat.rb +9 -9
- data/lib/tdlib/types/chat_action/uploading_document.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_photo.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_video.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_video_note.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_voice_note.rb +1 -1
- data/lib/tdlib/types/chat_action_bar/report_add_block.rb +1 -1
- data/lib/tdlib/types/chat_administrator.rb +2 -2
- data/lib/tdlib/types/chat_event.rb +3 -3
- data/lib/tdlib/types/chat_event_action/description_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/linked_chat_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/member_invited.rb +1 -1
- data/lib/tdlib/types/chat_event_action/member_promoted.rb +1 -1
- data/lib/tdlib/types/chat_event_action/message_ttl_setting_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/slow_mode_delay_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/sticker_set_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/title_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/username_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/voice_chat_created.rb +1 -1
- data/lib/tdlib/types/chat_event_action/voice_chat_discarded.rb +1 -1
- data/lib/tdlib/types/chat_event_action/voice_chat_participant_volume_level_changed.rb +1 -1
- data/lib/tdlib/types/chat_filter.rb +5 -5
- data/lib/tdlib/types/chat_filter_info.rb +3 -3
- data/lib/tdlib/types/chat_invite_link.rb +7 -7
- data/lib/tdlib/types/chat_invite_link_count.rb +3 -3
- data/lib/tdlib/types/chat_invite_link_info.rb +5 -5
- data/lib/tdlib/types/chat_invite_link_member.rb +2 -2
- data/lib/tdlib/types/chat_invite_link_members.rb +1 -1
- data/lib/tdlib/types/chat_invite_links.rb +1 -1
- data/lib/tdlib/types/chat_list/filter.rb +1 -1
- data/lib/tdlib/types/chat_location.rb +1 -1
- data/lib/tdlib/types/chat_member.rb +2 -2
- data/lib/tdlib/types/chat_member_status/administrator.rb +2 -2
- data/lib/tdlib/types/chat_member_status/banned.rb +1 -1
- data/lib/tdlib/types/chat_member_status/creator.rb +2 -2
- data/lib/tdlib/types/chat_member_status/restricted.rb +1 -1
- data/lib/tdlib/types/chat_members.rb +1 -1
- data/lib/tdlib/types/chat_members_filter/mention.rb +1 -1
- data/lib/tdlib/types/chat_nearby.rb +2 -2
- data/lib/tdlib/types/chat_notification_settings.rb +2 -2
- data/lib/tdlib/types/chat_photo.rb +2 -2
- data/lib/tdlib/types/chat_photos.rb +1 -1
- data/lib/tdlib/types/chat_position.rb +1 -1
- data/lib/tdlib/types/chat_source/public_service_announcement.rb +2 -2
- data/lib/tdlib/types/chat_statistics/channel.rb +1 -1
- data/lib/tdlib/types/chat_statistics_administrator_actions_info.rb +4 -4
- data/lib/tdlib/types/chat_statistics_inviter_info.rb +2 -2
- data/lib/tdlib/types/chat_statistics_message_interaction_info.rb +3 -3
- data/lib/tdlib/types/chat_statistics_message_sender_info.rb +3 -3
- data/lib/tdlib/types/chat_type/basic_group.rb +1 -1
- data/lib/tdlib/types/chat_type/private.rb +1 -1
- data/lib/tdlib/types/chat_type/secret.rb +2 -2
- data/lib/tdlib/types/chat_type/supergroup.rb +1 -1
- data/lib/tdlib/types/chats.rb +2 -2
- data/lib/tdlib/types/connected_website.rb +10 -10
- data/lib/tdlib/types/contact.rb +5 -5
- data/lib/tdlib/types/count.rb +1 -1
- data/lib/tdlib/types/country_info.rb +4 -4
- data/lib/tdlib/types/custom_request_result.rb +1 -1
- data/lib/tdlib/types/database_statistics.rb +1 -1
- data/lib/tdlib/types/date.rb +3 -3
- data/lib/tdlib/types/date_range.rb +2 -2
- data/lib/tdlib/types/dated_file.rb +1 -1
- data/lib/tdlib/types/device_token/apple_push.rb +1 -1
- data/lib/tdlib/types/device_token/apple_push_vo_ip.rb +1 -1
- data/lib/tdlib/types/device_token/black_berry_push.rb +1 -1
- data/lib/tdlib/types/device_token/firebase_cloud_messaging.rb +1 -1
- data/lib/tdlib/types/device_token/microsoft_push.rb +1 -1
- data/lib/tdlib/types/device_token/microsoft_push_vo_ip.rb +1 -1
- data/lib/tdlib/types/device_token/simple_push.rb +2 -2
- data/lib/tdlib/types/device_token/tizen_push.rb +1 -1
- data/lib/tdlib/types/device_token/ubuntu_push.rb +1 -1
- data/lib/tdlib/types/device_token/web_push.rb +4 -4
- data/lib/tdlib/types/device_token/windows_push.rb +2 -2
- data/lib/tdlib/types/document.rb +2 -2
- data/lib/tdlib/types/draft_message.rb +2 -2
- data/lib/tdlib/types/email_address_authentication_code_info.rb +3 -2
- data/lib/tdlib/types/emojis.rb +1 -1
- data/lib/tdlib/types/encrypted_credentials.rb +3 -3
- data/lib/tdlib/types/encrypted_passport_element.rb +3 -3
- data/lib/tdlib/types/error.rb +2 -2
- data/lib/tdlib/types/file.rb +3 -3
- data/lib/tdlib/types/file_part.rb +1 -1
- data/lib/tdlib/types/formatted_text.rb +1 -1
- data/lib/tdlib/types/found_messages.rb +2 -2
- data/lib/tdlib/types/game.rb +4 -4
- data/lib/tdlib/types/game_high_score.rb +3 -3
- data/lib/tdlib/types/group_call.rb +6 -6
- data/lib/tdlib/types/group_call_id.rb +1 -1
- data/lib/tdlib/types/group_call_join_response_candidate.rb +13 -13
- data/lib/tdlib/types/group_call_participant.rb +4 -4
- data/lib/tdlib/types/group_call_payload.rb +2 -2
- data/lib/tdlib/types/group_call_payload_fingerprint.rb +3 -3
- data/lib/tdlib/types/hashtags.rb +1 -1
- data/lib/tdlib/types/http_url.rb +1 -1
- data/lib/tdlib/types/identity_document.rb +1 -1
- data/lib/tdlib/types/imported_contacts.rb +2 -2
- data/lib/tdlib/types/inline_keyboard_button.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/callback.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/callback_with_password.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/login_url.rb +3 -3
- data/lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/url.rb +1 -1
- data/lib/tdlib/types/inline_query_result/animation.rb +2 -2
- data/lib/tdlib/types/inline_query_result/article.rb +4 -4
- data/lib/tdlib/types/inline_query_result/audio.rb +1 -1
- data/lib/tdlib/types/inline_query_result/contact.rb +1 -1
- data/lib/tdlib/types/inline_query_result/document.rb +3 -3
- data/lib/tdlib/types/inline_query_result/game.rb +1 -1
- data/lib/tdlib/types/inline_query_result/location.rb +2 -2
- data/lib/tdlib/types/inline_query_result/photo.rb +3 -3
- data/lib/tdlib/types/inline_query_result/sticker.rb +1 -1
- data/lib/tdlib/types/inline_query_result/venue.rb +1 -1
- data/lib/tdlib/types/inline_query_result/video.rb +3 -3
- data/lib/tdlib/types/inline_query_result/voice_note.rb +2 -2
- data/lib/tdlib/types/inline_query_results.rb +5 -5
- data/lib/tdlib/types/input_background/remote.rb +1 -1
- data/lib/tdlib/types/input_chat_photo/animation.rb +1 -1
- data/lib/tdlib/types/input_chat_photo/previous.rb +1 -1
- data/lib/tdlib/types/input_credentials/apple_pay.rb +1 -1
- data/lib/tdlib/types/input_credentials/google_pay.rb +1 -1
- data/lib/tdlib/types/input_credentials/new.rb +1 -1
- data/lib/tdlib/types/input_credentials/saved.rb +1 -1
- data/lib/tdlib/types/input_file/generated.rb +5 -5
- data/lib/tdlib/types/input_file/id.rb +1 -1
- data/lib/tdlib/types/input_file/local.rb +1 -1
- data/lib/tdlib/types/input_file/remote.rb +1 -1
- data/lib/tdlib/types/input_identity_document.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/animation.rb +9 -9
- data/lib/tdlib/types/input_inline_query_result/article.rb +7 -7
- data/lib/tdlib/types/input_inline_query_result/audio.rb +5 -5
- data/lib/tdlib/types/input_inline_query_result/contact.rb +4 -4
- data/lib/tdlib/types/input_inline_query_result/document.rb +9 -9
- data/lib/tdlib/types/input_inline_query_result/game.rb +2 -2
- data/lib/tdlib/types/input_inline_query_result/location.rb +6 -6
- data/lib/tdlib/types/input_inline_query_result/photo.rb +7 -7
- data/lib/tdlib/types/input_inline_query_result/sticker.rb +5 -5
- data/lib/tdlib/types/input_inline_query_result/venue.rb +4 -4
- data/lib/tdlib/types/input_inline_query_result/video.rb +10 -10
- data/lib/tdlib/types/input_inline_query_result/voice_note.rb +4 -4
- data/lib/tdlib/types/input_message_content/animation.rb +4 -4
- data/lib/tdlib/types/input_message_content/audio.rb +3 -3
- data/lib/tdlib/types/input_message_content/dice.rb +1 -1
- data/lib/tdlib/types/input_message_content/forwarded.rb +2 -2
- data/lib/tdlib/types/input_message_content/game.rb +2 -2
- data/lib/tdlib/types/input_message_content/invoice.rb +12 -10
- data/lib/tdlib/types/input_message_content/location.rb +3 -3
- data/lib/tdlib/types/input_message_content/photo.rb +4 -4
- data/lib/tdlib/types/input_message_content/poll.rb +4 -4
- data/lib/tdlib/types/input_message_content/sticker.rb +3 -3
- data/lib/tdlib/types/input_message_content/video.rb +5 -5
- data/lib/tdlib/types/input_message_content/video_note.rb +2 -2
- data/lib/tdlib/types/input_message_content/voice_note.rb +2 -2
- data/lib/tdlib/types/input_passport_element/email_address.rb +1 -1
- data/lib/tdlib/types/input_passport_element/phone_number.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/data_field.rb +2 -2
- data/lib/tdlib/types/input_passport_element_error_source/file.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/files.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/front_side.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/reverse_side.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/selfie.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/translation_file.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/translation_files.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/unspecified.rb +1 -1
- data/lib/tdlib/types/input_sticker/animated.rb +1 -1
- data/lib/tdlib/types/input_sticker/static.rb +1 -1
- data/lib/tdlib/types/input_thumbnail.rb +2 -2
- data/lib/tdlib/types/invoice.rb +3 -3
- data/lib/tdlib/types/json_object_member.rb +1 -1
- data/lib/tdlib/types/json_value/number.rb +1 -1
- data/lib/tdlib/types/json_value/string.rb +1 -1
- data/lib/tdlib/types/keyboard_button.rb +1 -1
- data/lib/tdlib/types/labeled_price_part.rb +2 -2
- data/lib/tdlib/types/language_pack_info.rb +10 -9
- data/lib/tdlib/types/language_pack_string.rb +1 -1
- data/lib/tdlib/types/language_pack_string_value/ordinary.rb +1 -1
- data/lib/tdlib/types/language_pack_string_value/pluralized.rb +6 -6
- data/lib/tdlib/types/local_file.rb +4 -4
- data/lib/tdlib/types/location.rb +3 -3
- data/lib/tdlib/types/log_stream/file.rb +2 -2
- data/lib/tdlib/types/log_tags.rb +1 -1
- data/lib/tdlib/types/log_verbosity_level.rb +1 -1
- data/lib/tdlib/types/login_url_info/open.rb +1 -1
- data/lib/tdlib/types/login_url_info/request_confirmation.rb +3 -3
- data/lib/tdlib/types/mask_position.rb +3 -3
- data/lib/tdlib/types/message.rb +15 -14
- data/lib/tdlib/types/message_content/basic_group_chat_create.rb +2 -2
- data/lib/tdlib/types/message_content/call.rb +1 -1
- data/lib/tdlib/types/message_content/chat_add_members.rb +1 -1
- data/lib/tdlib/types/message_content/chat_change_title.rb +1 -1
- data/lib/tdlib/types/message_content/chat_delete_member.rb +1 -1
- data/lib/tdlib/types/message_content/chat_set_ttl.rb +1 -1
- data/lib/tdlib/types/message_content/chat_upgrade_from.rb +2 -2
- data/lib/tdlib/types/message_content/chat_upgrade_to.rb +1 -1
- data/lib/tdlib/types/message_content/custom_service_action.rb +1 -1
- data/lib/tdlib/types/message_content/dice.rb +3 -3
- data/lib/tdlib/types/message_content/game_score.rb +3 -3
- data/lib/tdlib/types/message_content/invite_voice_chat_participants.rb +2 -2
- data/lib/tdlib/types/message_content/invoice.rb +6 -6
- data/lib/tdlib/types/message_content/location.rb +4 -4
- data/lib/tdlib/types/message_content/payment_successful.rb +4 -4
- data/lib/tdlib/types/message_content/payment_successful_bot.rb +7 -7
- data/lib/tdlib/types/message_content/pin_message.rb +1 -1
- data/lib/tdlib/types/message_content/proximity_alert_triggered.rb +1 -1
- data/lib/tdlib/types/message_content/supergroup_chat_create.rb +1 -1
- data/lib/tdlib/types/message_content/voice_chat_ended.rb +1 -1
- data/lib/tdlib/types/message_content/voice_chat_scheduled.rb +2 -2
- data/lib/tdlib/types/message_content/voice_chat_started.rb +1 -1
- data/lib/tdlib/types/message_content/website_connected.rb +1 -1
- data/lib/tdlib/types/message_file_type/group.rb +1 -1
- data/lib/tdlib/types/message_file_type/private.rb +1 -1
- data/lib/tdlib/types/message_forward_info.rb +5 -5
- data/lib/tdlib/types/message_forward_origin/channel.rb +3 -3
- data/lib/tdlib/types/message_forward_origin/chat.rb +2 -2
- data/lib/tdlib/types/message_forward_origin/hidden_user.rb +1 -1
- data/lib/tdlib/types/message_forward_origin/message_import.rb +1 -1
- data/lib/tdlib/types/message_forward_origin/user.rb +1 -1
- data/lib/tdlib/types/message_interaction_info.rb +2 -2
- data/lib/tdlib/types/message_link.rb +1 -1
- data/lib/tdlib/types/message_link_info.rb +1 -1
- data/lib/tdlib/types/message_reply_info.rb +4 -4
- data/lib/tdlib/types/message_scheduling_state/send_at_date.rb +1 -1
- data/lib/tdlib/types/message_sender/chat.rb +1 -1
- data/lib/tdlib/types/message_sender/user.rb +1 -1
- data/lib/tdlib/types/message_senders.rb +1 -1
- data/lib/tdlib/types/message_sending_state/failed.rb +3 -3
- data/lib/tdlib/types/message_thread_info.rb +2 -2
- data/lib/tdlib/types/messages.rb +1 -1
- data/lib/tdlib/types/minithumbnail.rb +3 -3
- data/lib/tdlib/types/network_statistics.rb +1 -1
- data/lib/tdlib/types/network_statistics_entry/call.rb +3 -3
- data/lib/tdlib/types/network_statistics_entry/file.rb +2 -2
- data/lib/tdlib/types/notification.rb +2 -2
- data/lib/tdlib/types/notification_group.rb +3 -3
- data/lib/tdlib/types/notification_type/new_call.rb +1 -1
- data/lib/tdlib/types/notification_type/new_push_message.rb +2 -2
- data/lib/tdlib/types/option_value/integer.rb +1 -1
- data/lib/tdlib/types/option_value/string.rb +1 -1
- data/lib/tdlib/types/order_info.rb +3 -3
- data/lib/tdlib/types/page_block/anchor.rb +1 -1
- data/lib/tdlib/types/page_block/author_date.rb +1 -1
- data/lib/tdlib/types/page_block/chat_link.rb +2 -2
- data/lib/tdlib/types/page_block/embedded.rb +4 -4
- data/lib/tdlib/types/page_block/embedded_post.rb +3 -3
- data/lib/tdlib/types/page_block/map.rb +3 -3
- data/lib/tdlib/types/page_block/photo.rb +1 -1
- data/lib/tdlib/types/page_block/preformatted.rb +1 -1
- data/lib/tdlib/types/page_block_list_item.rb +1 -1
- data/lib/tdlib/types/page_block_related_article.rb +5 -5
- data/lib/tdlib/types/page_block_table_cell.rb +2 -2
- data/lib/tdlib/types/passport_authorization_form.rb +2 -2
- data/lib/tdlib/types/passport_element/email_address.rb +1 -1
- data/lib/tdlib/types/passport_element/phone_number.rb +1 -1
- data/lib/tdlib/types/passport_element_error.rb +1 -1
- data/lib/tdlib/types/passport_element_error_source/data_field.rb +1 -1
- data/lib/tdlib/types/passport_element_error_source/file.rb +1 -1
- data/lib/tdlib/types/passport_element_error_source/translation_file.rb +1 -1
- data/lib/tdlib/types/password_state.rb +1 -1
- data/lib/tdlib/types/payment_form.rb +4 -4
- data/lib/tdlib/types/payment_form_theme.rb +6 -6
- data/lib/tdlib/types/payment_receipt.rb +7 -7
- data/lib/tdlib/types/payment_result.rb +1 -1
- data/lib/tdlib/types/payments_provider_stripe.rb +1 -1
- data/lib/tdlib/types/personal_details.rb +10 -9
- data/lib/tdlib/types/phone_number_info.rb +4 -3
- data/lib/tdlib/types/photo_size.rb +4 -4
- data/lib/tdlib/types/point.rb +2 -2
- data/lib/tdlib/types/poll.rb +6 -6
- data/lib/tdlib/types/poll_option.rb +3 -3
- data/lib/tdlib/types/poll_type/quiz.rb +1 -1
- data/lib/tdlib/types/profile_photo.rb +1 -1
- data/lib/tdlib/types/proxy.rb +4 -4
- data/lib/tdlib/types/proxy_type/http.rb +2 -2
- data/lib/tdlib/types/proxy_type/mtproto.rb +1 -1
- data/lib/tdlib/types/proxy_type/socks5.rb +2 -2
- data/lib/tdlib/types/push_message_content/animation.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_add_members.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_change_title.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_delete_member.rb +1 -1
- data/lib/tdlib/types/push_message_content/contact.rb +1 -1
- data/lib/tdlib/types/push_message_content/game.rb +1 -1
- data/lib/tdlib/types/push_message_content/game_score.rb +2 -2
- data/lib/tdlib/types/push_message_content/invoice.rb +1 -1
- data/lib/tdlib/types/push_message_content/media_album.rb +1 -1
- data/lib/tdlib/types/push_message_content/message_forwards.rb +1 -1
- data/lib/tdlib/types/push_message_content/photo.rb +1 -1
- data/lib/tdlib/types/push_message_content/poll.rb +1 -1
- data/lib/tdlib/types/push_message_content/sticker.rb +1 -1
- data/lib/tdlib/types/push_message_content/text.rb +1 -1
- data/lib/tdlib/types/push_message_content/video.rb +1 -1
- data/lib/tdlib/types/push_receiver_id.rb +1 -1
- data/lib/tdlib/types/recommended_chat_filter.rb +1 -1
- data/lib/tdlib/types/recovery_email_address.rb +1 -1
- data/lib/tdlib/types/remote_file.rb +3 -3
- data/lib/tdlib/types/rich_text/anchor.rb +1 -1
- data/lib/tdlib/types/rich_text/anchor_link.rb +2 -2
- data/lib/tdlib/types/rich_text/email_address.rb +1 -1
- data/lib/tdlib/types/rich_text/icon.rb +2 -2
- data/lib/tdlib/types/rich_text/phone_number.rb +1 -1
- data/lib/tdlib/types/rich_text/plain.rb +1 -1
- data/lib/tdlib/types/rich_text/reference.rb +3 -3
- data/lib/tdlib/types/rich_text/url.rb +1 -1
- data/lib/tdlib/types/saved_credentials.rb +2 -2
- data/lib/tdlib/types/scope_notification_settings.rb +2 -2
- data/lib/tdlib/types/seconds.rb +1 -1
- data/lib/tdlib/types/secret_chat.rb +4 -4
- data/lib/tdlib/types/session.rb +15 -15
- data/lib/tdlib/types/shipping_option.rb +2 -2
- data/lib/tdlib/types/statistical_graph/async.rb +1 -1
- data/lib/tdlib/types/statistical_graph/data.rb +2 -2
- data/lib/tdlib/types/statistical_graph/error.rb +1 -1
- data/lib/tdlib/types/statistical_value.rb +3 -3
- data/lib/tdlib/types/sticker.rb +4 -4
- data/lib/tdlib/types/sticker_set.rb +3 -3
- data/lib/tdlib/types/sticker_set_info.rb +4 -4
- data/lib/tdlib/types/sticker_sets.rb +1 -1
- data/lib/tdlib/types/storage_statistics.rb +2 -2
- data/lib/tdlib/types/storage_statistics_by_chat.rb +3 -3
- data/lib/tdlib/types/storage_statistics_by_file_type.rb +2 -2
- data/lib/tdlib/types/storage_statistics_fast.rb +5 -5
- data/lib/tdlib/types/suggested_action/convert_to_broadcast_group.rb +1 -1
- data/lib/tdlib/types/supergroup.rb +7 -6
- data/lib/tdlib/types/supergroup_full_info.rb +11 -11
- data/lib/tdlib/types/supergroup_members_filter/banned.rb +1 -1
- data/lib/tdlib/types/supergroup_members_filter/contacts.rb +1 -1
- data/lib/tdlib/types/supergroup_members_filter/mention.rb +2 -2
- data/lib/tdlib/types/supergroup_members_filter/restricted.rb +1 -1
- data/lib/tdlib/types/supergroup_members_filter/search.rb +1 -1
- data/lib/tdlib/types/t_me_url.rb +1 -1
- data/lib/tdlib/types/t_me_url_type/sticker_set.rb +1 -1
- data/lib/tdlib/types/t_me_url_type/supergroup.rb +1 -1
- data/lib/tdlib/types/t_me_url_type/user.rb +1 -1
- data/lib/tdlib/types/tdlib_parameters.rb +12 -11
- data/lib/tdlib/types/temporary_password_state.rb +1 -1
- data/lib/tdlib/types/terms_of_service.rb +1 -1
- data/lib/tdlib/types/text.rb +1 -1
- data/lib/tdlib/types/text_entity.rb +2 -2
- data/lib/tdlib/types/text_entity_type/mention_name.rb +1 -1
- data/lib/tdlib/types/text_entity_type/pre_code.rb +1 -1
- data/lib/tdlib/types/text_entity_type/text_url.rb +1 -1
- data/lib/tdlib/types/text_parse_mode/markdown.rb +1 -1
- data/lib/tdlib/types/thumbnail.rb +2 -2
- data/lib/tdlib/types/update/animation_search_parameters.rb +2 -2
- data/lib/tdlib/types/update/basic_group_full_info.rb +1 -1
- data/lib/tdlib/types/update/chat_action_bar.rb +1 -1
- data/lib/tdlib/types/update/chat_default_disable_notification.rb +1 -1
- data/lib/tdlib/types/update/chat_draft_message.rb +1 -1
- data/lib/tdlib/types/update/chat_has_scheduled_messages.rb +1 -1
- data/lib/tdlib/types/update/chat_is_blocked.rb +1 -1
- data/lib/tdlib/types/update/chat_is_marked_as_unread.rb +1 -1
- data/lib/tdlib/types/update/chat_last_message.rb +1 -1
- data/lib/tdlib/types/update/chat_member.rb +3 -3
- data/lib/tdlib/types/update/chat_message_ttl_setting.rb +2 -2
- data/lib/tdlib/types/update/chat_notification_settings.rb +1 -1
- data/lib/tdlib/types/update/chat_online_member_count.rb +2 -2
- data/lib/tdlib/types/update/chat_permissions.rb +1 -1
- data/lib/tdlib/types/update/chat_photo.rb +1 -1
- data/lib/tdlib/types/update/chat_position.rb +1 -1
- data/lib/tdlib/types/update/chat_read_inbox.rb +3 -3
- data/lib/tdlib/types/update/chat_read_outbox.rb +2 -2
- data/lib/tdlib/types/update/chat_reply_markup.rb +2 -2
- data/lib/tdlib/types/update/chat_title.rb +2 -2
- data/lib/tdlib/types/update/chat_unread_mention_count.rb +2 -2
- data/lib/tdlib/types/update/chat_voice_chat.rb +1 -1
- data/lib/tdlib/types/update/delete_messages.rb +2 -2
- data/lib/tdlib/types/update/dice_emojis.rb +1 -1
- data/lib/tdlib/types/update/favorite_stickers.rb +1 -1
- data/lib/tdlib/types/update/file_generation_start.rb +5 -5
- data/lib/tdlib/types/update/file_generation_stop.rb +1 -1
- data/lib/tdlib/types/update/group_call_participant.rb +1 -1
- data/lib/tdlib/types/update/installed_sticker_sets.rb +1 -1
- data/lib/tdlib/types/update/language_pack_strings.rb +2 -2
- data/lib/tdlib/types/update/message_content.rb +2 -2
- data/lib/tdlib/types/update/message_content_opened.rb +2 -2
- data/lib/tdlib/types/update/message_edited.rb +3 -3
- data/lib/tdlib/types/update/message_interaction_info.rb +2 -2
- data/lib/tdlib/types/update/message_is_pinned.rb +2 -2
- data/lib/tdlib/types/update/message_live_location_viewed.rb +2 -2
- data/lib/tdlib/types/update/message_mention_read.rb +3 -3
- data/lib/tdlib/types/update/message_send_acknowledged.rb +2 -2
- data/lib/tdlib/types/update/message_send_failed.rb +3 -3
- data/lib/tdlib/types/update/message_send_succeeded.rb +1 -1
- data/lib/tdlib/types/update/new_call_signaling_data.rb +2 -2
- data/lib/tdlib/types/update/new_callback_query.rb +5 -5
- data/lib/tdlib/types/update/new_chosen_inline_result.rb +4 -4
- data/lib/tdlib/types/update/new_custom_event.rb +1 -1
- data/lib/tdlib/types/update/new_custom_query.rb +3 -3
- data/lib/tdlib/types/update/new_inline_callback_query.rb +4 -4
- data/lib/tdlib/types/update/new_inline_query.rb +4 -4
- data/lib/tdlib/types/update/new_pre_checkout_query.rb +7 -7
- data/lib/tdlib/types/update/new_shipping_query.rb +3 -3
- data/lib/tdlib/types/update/notification.rb +1 -1
- data/lib/tdlib/types/update/notification_group.rb +5 -5
- data/lib/tdlib/types/update/option.rb +1 -1
- data/lib/tdlib/types/update/poll_answer.rb +3 -3
- data/lib/tdlib/types/update/recent_stickers.rb +1 -1
- data/lib/tdlib/types/update/saved_animations.rb +1 -1
- data/lib/tdlib/types/update/service_notification.rb +1 -1
- data/lib/tdlib/types/update/supergroup_full_info.rb +1 -1
- data/lib/tdlib/types/update/terms_of_service.rb +1 -1
- data/lib/tdlib/types/update/unread_chat_count.rb +5 -5
- data/lib/tdlib/types/update/unread_message_count.rb +2 -2
- data/lib/tdlib/types/update/user_chat_action.rb +3 -3
- data/lib/tdlib/types/update/user_full_info.rb +1 -1
- data/lib/tdlib/types/update/user_status.rb +1 -1
- data/lib/tdlib/types/user.rb +8 -8
- data/lib/tdlib/types/user_full_info.rb +3 -3
- data/lib/tdlib/types/user_privacy_setting_rule/allow_chat_members.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule/allow_users.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_chat_members.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_users.rb +1 -1
- data/lib/tdlib/types/user_status/offline.rb +1 -1
- data/lib/tdlib/types/user_status/online.rb +1 -1
- data/lib/tdlib/types/user_type/bot.rb +2 -1
- data/lib/tdlib/types/users.rb +2 -2
- data/lib/tdlib/types/validated_order_info.rb +1 -1
- data/lib/tdlib/types/venue.rb +5 -5
- data/lib/tdlib/types/video.rb +5 -5
- data/lib/tdlib/types/video_note.rb +2 -2
- data/lib/tdlib/types/voice_chat.rb +1 -1
- data/lib/tdlib/types/voice_note.rb +3 -3
- data/lib/tdlib/types/web_page.rb +12 -12
- data/lib/tdlib/types/web_page_instant_view.rb +2 -2
- data/tdlib-schema.gemspec +1 -1
- metadata +2 -2
@@ -6,7 +6,7 @@ module TD::Types
|
|
6
6
|
# @attr chat_id [Integer] Identifier of the chat.
|
7
7
|
# @attr online_member_count [Integer] New number of online members in the chat, or 0 if unknown.
|
8
8
|
class Update::ChatOnlineMemberCount < Update
|
9
|
-
attribute :chat_id, TD::Types::Integer
|
10
|
-
attribute :online_member_count, TD::Types::Integer
|
9
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
10
|
+
attribute :online_member_count, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr permissions [TD::Types::ChatPermissions] The new chat permissions.
|
6
6
|
class Update::ChatPermissions < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :permissions, TD::Types::ChatPermissions
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr photo [TD::Types::ChatPhotoInfo, nil] The new chat photo; may be null.
|
6
6
|
class Update::ChatPhoto < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :photo, TD::Types::ChatPhotoInfo.optional.default(nil)
|
9
9
|
end
|
10
10
|
end
|
@@ -6,7 +6,7 @@ module TD::Types
|
|
6
6
|
# @attr position [TD::Types::ChatPosition] New chat position.
|
7
7
|
# If new order is 0, then the chat needs to be removed from the list.
|
8
8
|
class Update::ChatPosition < Update
|
9
|
-
attribute :chat_id, TD::Types::Integer
|
9
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
10
10
|
attribute :position, TD::Types::ChatPosition
|
11
11
|
end
|
12
12
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr last_read_inbox_message_id [Integer] Identifier of the last read incoming message.
|
6
6
|
# @attr unread_count [Integer] The number of unread messages left in the chat.
|
7
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
|
8
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
9
|
+
attribute :last_read_inbox_message_id, TD::Types::Coercible::Integer
|
10
|
+
attribute :unread_count, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr last_read_outbox_message_id [Integer] Identifier of last read outgoing message.
|
6
6
|
class Update::ChatReadOutbox < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
8
|
-
attribute :last_read_outbox_message_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
|
+
attribute :last_read_outbox_message_id, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -7,7 +7,7 @@ module TD::Types
|
|
7
7
|
# @attr reply_markup_message_id [Integer] Identifier of the message from which reply markup needs to be used; 0 if
|
8
8
|
# there is no default custom reply markup in the chat.
|
9
9
|
class Update::ChatReplyMarkup < Update
|
10
|
-
attribute :chat_id, TD::Types::Integer
|
11
|
-
attribute :reply_markup_message_id, TD::Types::Integer
|
10
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
11
|
+
attribute :reply_markup_message_id, TD::Types::Coercible::Integer
|
12
12
|
end
|
13
13
|
end
|
@@ -2,9 +2,9 @@ module TD::Types
|
|
2
2
|
# The title of a chat was changed.
|
3
3
|
#
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
|
-
# @attr title [String] The new chat title.
|
5
|
+
# @attr title [TD::Types::String] The new chat title.
|
6
6
|
class Update::ChatTitle < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :title, TD::Types::String
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr unread_mention_count [Integer] The number of unread mention messages left in the chat.
|
6
6
|
class Update::ChatUnreadMentionCount < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
8
|
-
attribute :unread_mention_count, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
|
+
attribute :unread_mention_count, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr voice_chat [TD::Types::VoiceChat] New value of voice_chat.
|
6
6
|
class Update::ChatVoiceChat < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :voice_chat, TD::Types::VoiceChat
|
9
9
|
end
|
10
10
|
end
|
@@ -8,8 +8,8 @@ module TD::Types
|
|
8
8
|
# @attr from_cache [Boolean] True, if the messages are deleted only from the cache and can possibly be retrieved
|
9
9
|
# again in the future.
|
10
10
|
class Update::DeleteMessages < Update
|
11
|
-
attribute :chat_id, TD::Types::Integer
|
12
|
-
attribute :message_ids, TD::Types::Array.of(TD::Types::Integer)
|
11
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
12
|
+
attribute :message_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
13
13
|
attribute :is_permanent, TD::Types::Bool
|
14
14
|
attribute :from_cache, TD::Types::Bool
|
15
15
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# The list of supported dice emojis has changed.
|
3
3
|
#
|
4
|
-
# @attr emojis [Array<String>] The new list of supported dice emojis.
|
4
|
+
# @attr emojis [Array<TD::Types::String>] The new list of supported dice emojis.
|
5
5
|
class Update::DiceEmojis < Update
|
6
6
|
attribute :emojis, TD::Types::Array.of(TD::Types::String)
|
7
7
|
end
|
@@ -3,6 +3,6 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr sticker_ids [Array<Integer>] The new list of file identifiers of favorite stickers.
|
5
5
|
class Update::FavoriteStickers < Update
|
6
|
-
attribute :sticker_ids, TD::Types::Array.of(TD::Types::Integer)
|
6
|
+
attribute :sticker_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
7
7
|
end
|
8
8
|
end
|
@@ -2,14 +2,14 @@ module TD::Types
|
|
2
2
|
# The file generation process needs to be started by the application.
|
3
3
|
#
|
4
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
|
7
|
-
# generated.
|
8
|
-
# @attr conversion [String] String specifying the conversion applied to the original file.
|
5
|
+
# @attr original_path [TD::Types::String, nil] The path to a file from which a new file is generated; may be empty.
|
6
|
+
# @attr destination_path [TD::Types::String] The path to a file that should be created and where the new file should
|
7
|
+
# be generated.
|
8
|
+
# @attr conversion [TD::Types::String] String specifying the conversion applied to the original file.
|
9
9
|
# If conversion is "#url#" than original_path contains an HTTP/HTTPS URL of a file, which should be downloaded by
|
10
10
|
# the application.
|
11
11
|
class Update::FileGenerationStart < Update
|
12
|
-
attribute :generation_id, TD::Types::Integer
|
12
|
+
attribute :generation_id, TD::Types::Coercible::Integer
|
13
13
|
attribute :original_path, TD::Types::String.optional.default(nil)
|
14
14
|
attribute :destination_path, TD::Types::String
|
15
15
|
attribute :conversion, TD::Types::String
|
@@ -6,7 +6,7 @@ module TD::Types
|
|
6
6
|
# @attr group_call_id [Integer] Identifier of group call.
|
7
7
|
# @attr participant [TD::Types::GroupCallParticipant] New data about a participant.
|
8
8
|
class Update::GroupCallParticipant < Update
|
9
|
-
attribute :group_call_id, TD::Types::Integer
|
9
|
+
attribute :group_call_id, TD::Types::Coercible::Integer
|
10
10
|
attribute :participant, TD::Types::GroupCallParticipant
|
11
11
|
end
|
12
12
|
end
|
@@ -5,6 +5,6 @@ module TD::Types
|
|
5
5
|
# @attr sticker_set_ids [Array<Integer>] The new list of installed ordinary sticker sets.
|
6
6
|
class Update::InstalledStickerSets < Update
|
7
7
|
attribute :is_masks, TD::Types::Bool
|
8
|
-
attribute :sticker_set_ids, TD::Types::Array.of(TD::Types::Integer)
|
8
|
+
attribute :sticker_set_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
9
9
|
end
|
10
10
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Some language pack strings have been updated.
|
3
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.
|
4
|
+
# @attr localization_target [TD::Types::String] Localization target to which the language pack belongs.
|
5
|
+
# @attr language_pack_id [TD::Types::String] Identifier of the updated language pack.
|
6
6
|
# @attr strings [Array<TD::Types::LanguagePackString>] List of changed language pack strings.
|
7
7
|
class Update::LanguagePackStrings < Update
|
8
8
|
attribute :localization_target, TD::Types::String
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr message_id [Integer] Message identifier.
|
6
6
|
# @attr new_content [TD::Types::MessageContent] New message content.
|
7
7
|
class Update::MessageContent < Update
|
8
|
-
attribute :chat_id, TD::Types::Integer
|
9
|
-
attribute :message_id, TD::Types::Integer
|
8
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
9
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
10
10
|
attribute :new_content, TD::Types::MessageContent
|
11
11
|
end
|
12
12
|
end
|
@@ -6,7 +6,7 @@ module TD::Types
|
|
6
6
|
# @attr chat_id [Integer] Chat identifier.
|
7
7
|
# @attr message_id [Integer] Message identifier.
|
8
8
|
class Update::MessageContentOpened < Update
|
9
|
-
attribute :chat_id, TD::Types::Integer
|
10
|
-
attribute :message_id, TD::Types::Integer
|
9
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
10
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -7,9 +7,9 @@ module TD::Types
|
|
7
7
|
# @attr edit_date [Integer] Point in time (Unix timestamp) when the message was edited.
|
8
8
|
# @attr reply_markup [TD::Types::ReplyMarkup, nil] New message reply markup; may be null.
|
9
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
|
10
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
11
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
12
|
+
attribute :edit_date, TD::Types::Coercible::Integer
|
13
13
|
attribute :reply_markup, TD::Types::ReplyMarkup.optional.default(nil)
|
14
14
|
end
|
15
15
|
end
|
@@ -6,8 +6,8 @@ module TD::Types
|
|
6
6
|
# @attr interaction_info [TD::Types::MessageInteractionInfo, nil] New information about interactions with the
|
7
7
|
# message; may be null.
|
8
8
|
class Update::MessageInteractionInfo < Update
|
9
|
-
attribute :chat_id, TD::Types::Integer
|
10
|
-
attribute :message_id, TD::Types::Integer
|
9
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
10
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
11
11
|
attribute :interaction_info, TD::Types::MessageInteractionInfo.optional.default(nil)
|
12
12
|
end
|
13
13
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr message_id [Integer] The message identifier.
|
6
6
|
# @attr is_pinned [Boolean] True, if the message is pinned.
|
7
7
|
class Update::MessageIsPinned < Update
|
8
|
-
attribute :chat_id, TD::Types::Integer
|
9
|
-
attribute :message_id, TD::Types::Integer
|
8
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
9
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
10
10
|
attribute :is_pinned, TD::Types::Bool
|
11
11
|
end
|
12
12
|
end
|
@@ -5,7 +5,7 @@ module TD::Types
|
|
5
5
|
# @attr chat_id [Integer] Identifier of the chat with the live location message.
|
6
6
|
# @attr message_id [Integer] Identifier of the message with live location.
|
7
7
|
class Update::MessageLiveLocationViewed < Update
|
8
|
-
attribute :chat_id, TD::Types::Integer
|
9
|
-
attribute :message_id, TD::Types::Integer
|
8
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
9
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
10
10
|
end
|
11
11
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr message_id [Integer] Message identifier.
|
6
6
|
# @attr unread_mention_count [Integer] The new number of unread mention messages left in the chat.
|
7
7
|
class Update::MessageMentionRead < Update
|
8
|
-
attribute :chat_id, TD::Types::Integer
|
9
|
-
attribute :message_id, TD::Types::Integer
|
10
|
-
attribute :unread_mention_count, TD::Types::Integer
|
8
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
9
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
10
|
+
attribute :unread_mention_count, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -8,7 +8,7 @@ module TD::Types
|
|
8
8
|
# @attr chat_id [Integer] The chat identifier of the sent message.
|
9
9
|
# @attr message_id [Integer] A temporary message identifier.
|
10
10
|
class Update::MessageSendAcknowledged < Update
|
11
|
-
attribute :chat_id, TD::Types::Integer
|
12
|
-
attribute :message_id, TD::Types::Integer
|
11
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
12
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
13
13
|
end
|
14
14
|
end
|
@@ -6,11 +6,11 @@ module TD::Types
|
|
6
6
|
# @attr message [TD::Types::Message] Contains information about the message which failed to send.
|
7
7
|
# @attr old_message_id [Integer] The previous temporary message identifier.
|
8
8
|
# @attr error_code [Integer] An error code.
|
9
|
-
# @attr error_message [String] Error message.
|
9
|
+
# @attr error_message [TD::Types::String] Error message.
|
10
10
|
class Update::MessageSendFailed < Update
|
11
11
|
attribute :message, TD::Types::Message
|
12
|
-
attribute :old_message_id, TD::Types::Integer
|
13
|
-
attribute :error_code, TD::Types::Integer
|
12
|
+
attribute :old_message_id, TD::Types::Coercible::Integer
|
13
|
+
attribute :error_code, TD::Types::Coercible::Integer
|
14
14
|
attribute :error_message, TD::Types::String
|
15
15
|
end
|
16
16
|
end
|
@@ -6,6 +6,6 @@ module TD::Types
|
|
6
6
|
# @attr old_message_id [Integer] The previous temporary message identifier.
|
7
7
|
class Update::MessageSendSucceeded < Update
|
8
8
|
attribute :message, TD::Types::Message
|
9
|
-
attribute :old_message_id, TD::Types::Integer
|
9
|
+
attribute :old_message_id, TD::Types::Coercible::Integer
|
10
10
|
end
|
11
11
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr call_id [Integer] The call identifier.
|
5
5
|
# @attr data [String] The data.
|
6
6
|
class Update::NewCallSignalingData < Update
|
7
|
-
attribute :call_id, TD::Types::Integer
|
8
|
-
attribute :data, TD::Types::String
|
7
|
+
attribute :call_id, TD::Types::Coercible::Integer
|
8
|
+
attribute :data, TD::Types::Coercible::String
|
9
9
|
end
|
10
10
|
end
|
@@ -8,11 +8,11 @@ module TD::Types
|
|
8
8
|
# @attr chat_instance [Integer] Identifier that uniquely corresponds to the chat to which the message was sent.
|
9
9
|
# @attr payload [TD::Types::CallbackQueryPayload] Query payload.
|
10
10
|
class Update::NewCallbackQuery < Update
|
11
|
-
attribute :id, TD::Types::Integer
|
12
|
-
attribute :sender_user_id, TD::Types::Integer
|
13
|
-
attribute :chat_id, TD::Types::Integer
|
14
|
-
attribute :message_id, TD::Types::Integer
|
15
|
-
attribute :chat_instance, TD::Types::Integer
|
11
|
+
attribute :id, TD::Types::Coercible::Integer
|
12
|
+
attribute :sender_user_id, TD::Types::Coercible::Integer
|
13
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
14
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
15
|
+
attribute :chat_instance, TD::Types::Coercible::Integer
|
16
16
|
attribute :payload, TD::Types::CallbackQueryPayload
|
17
17
|
end
|
18
18
|
end
|
@@ -3,11 +3,11 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr sender_user_id [Integer] Identifier of the user who sent the query.
|
5
5
|
# @attr user_location [TD::Types::Location, nil] User location; may be null.
|
6
|
-
# @attr query [String] Text of the query.
|
7
|
-
# @attr result_id [String] Identifier of the chosen result.
|
8
|
-
# @attr inline_message_id [String] Identifier of the sent inline message, if known.
|
6
|
+
# @attr query [TD::Types::String] Text of the query.
|
7
|
+
# @attr result_id [TD::Types::String] Identifier of the chosen result.
|
8
|
+
# @attr inline_message_id [TD::Types::String] Identifier of the sent inline message, if known.
|
9
9
|
class Update::NewChosenInlineResult < Update
|
10
|
-
attribute :sender_user_id, TD::Types::Integer
|
10
|
+
attribute :sender_user_id, TD::Types::Coercible::Integer
|
11
11
|
attribute :user_location, TD::Types::Location.optional.default(nil)
|
12
12
|
attribute :query, TD::Types::String
|
13
13
|
attribute :result_id, TD::Types::String
|
@@ -2,11 +2,11 @@ module TD::Types
|
|
2
2
|
# A new incoming query; for bots only.
|
3
3
|
#
|
4
4
|
# @attr id [Integer] The query identifier.
|
5
|
-
# @attr data [String] JSON-serialized query data.
|
5
|
+
# @attr data [TD::Types::String] JSON-serialized query data.
|
6
6
|
# @attr timeout [Integer] Query timeout.
|
7
7
|
class Update::NewCustomQuery < Update
|
8
|
-
attribute :id, TD::Types::Integer
|
8
|
+
attribute :id, TD::Types::Coercible::Integer
|
9
9
|
attribute :data, TD::Types::String
|
10
|
-
attribute :timeout, TD::Types::Integer
|
10
|
+
attribute :timeout, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -3,14 +3,14 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr id [Integer] Unique query identifier.
|
5
5
|
# @attr sender_user_id [Integer] Identifier of the user who sent the query.
|
6
|
-
# @attr inline_message_id [String] Identifier of the inline message, from which the query originated.
|
6
|
+
# @attr inline_message_id [TD::Types::String] Identifier of the inline message, from which the query originated.
|
7
7
|
# @attr chat_instance [Integer] An identifier uniquely corresponding to the chat a message was sent to.
|
8
8
|
# @attr payload [TD::Types::CallbackQueryPayload] Query payload.
|
9
9
|
class Update::NewInlineCallbackQuery < Update
|
10
|
-
attribute :id, TD::Types::Integer
|
11
|
-
attribute :sender_user_id, TD::Types::Integer
|
10
|
+
attribute :id, TD::Types::Coercible::Integer
|
11
|
+
attribute :sender_user_id, TD::Types::Coercible::Integer
|
12
12
|
attribute :inline_message_id, TD::Types::String
|
13
|
-
attribute :chat_instance, TD::Types::Integer
|
13
|
+
attribute :chat_instance, TD::Types::Coercible::Integer
|
14
14
|
attribute :payload, TD::Types::CallbackQueryPayload
|
15
15
|
end
|
16
16
|
end
|
@@ -6,11 +6,11 @@ module TD::Types
|
|
6
6
|
# @attr user_location [TD::Types::Location, nil] User location; may be null.
|
7
7
|
# @attr chat_type [TD::Types::ChatType, nil] Contains information about the type of the chat, from which the query
|
8
8
|
# originated; may be null if unknown.
|
9
|
-
# @attr query [String] Text of the query.
|
10
|
-
# @attr offset [String] Offset of the first entry to return.
|
9
|
+
# @attr query [TD::Types::String] Text of the query.
|
10
|
+
# @attr offset [TD::Types::String] Offset of the first entry to return.
|
11
11
|
class Update::NewInlineQuery < Update
|
12
|
-
attribute :id, TD::Types::Integer
|
13
|
-
attribute :sender_user_id, TD::Types::Integer
|
12
|
+
attribute :id, TD::Types::Coercible::Integer
|
13
|
+
attribute :sender_user_id, TD::Types::Coercible::Integer
|
14
14
|
attribute :user_location, TD::Types::Location.optional.default(nil)
|
15
15
|
attribute :chat_type, TD::Types::ChatType.optional.default(nil)
|
16
16
|
attribute :query, TD::Types::String
|
@@ -4,18 +4,18 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr id [Integer] Unique query identifier.
|
6
6
|
# @attr sender_user_id [Integer] Identifier of the user who sent the query.
|
7
|
-
# @attr currency [String] Currency for the product price.
|
7
|
+
# @attr currency [TD::Types::String] Currency for the product price.
|
8
8
|
# @attr total_amount [Integer] Total price for the product, in the smallest units of the currency.
|
9
9
|
# @attr invoice_payload [String] Invoice payload.
|
10
|
-
# @attr shipping_option_id [String, nil] Identifier of a shipping option chosen by the user; may be empty
|
11
|
-
# applicable.
|
10
|
+
# @attr shipping_option_id [TD::Types::String, nil] Identifier of a shipping option chosen by the user; may be empty
|
11
|
+
# if not applicable.
|
12
12
|
# @attr order_info [TD::Types::OrderInfo, nil] Information about the order; may be null.
|
13
13
|
class Update::NewPreCheckoutQuery < Update
|
14
|
-
attribute :id, TD::Types::Integer
|
15
|
-
attribute :sender_user_id, TD::Types::Integer
|
14
|
+
attribute :id, TD::Types::Coercible::Integer
|
15
|
+
attribute :sender_user_id, TD::Types::Coercible::Integer
|
16
16
|
attribute :currency, TD::Types::String
|
17
|
-
attribute :total_amount, TD::Types::Integer
|
18
|
-
attribute :invoice_payload, TD::Types::String
|
17
|
+
attribute :total_amount, TD::Types::Coercible::Integer
|
18
|
+
attribute :invoice_payload, TD::Types::Coercible::String
|
19
19
|
attribute :shipping_option_id, TD::Types::String.optional.default(nil)
|
20
20
|
attribute :order_info, TD::Types::OrderInfo.optional.default(nil)
|
21
21
|
end
|