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,8 @@ module TD::Types
|
|
6
6
|
# Unlike supergroups, channels can have an unlimited number of subscribers.
|
7
7
|
#
|
8
8
|
# @attr id [Integer] Supergroup or channel identifier.
|
9
|
-
# @attr username [String, nil] Username of the supergroup or channel; empty for private supergroups or
|
9
|
+
# @attr username [TD::Types::String, nil] Username of the supergroup or channel; empty for private supergroups or
|
10
|
+
# channels.
|
10
11
|
# @attr date [Integer] Point in time (Unix timestamp) when the current user joined, or the point in time when the
|
11
12
|
# supergroup or channel was created, in case the user is not a member.
|
12
13
|
# @attr status [TD::Types::ChatMemberStatus] Status of the current user in the supergroup or channel; custom title
|
@@ -26,16 +27,16 @@ module TD::Types
|
|
26
27
|
# @attr is_broadcast_group [Boolean] True, if the supergroup is a broadcast group, i.e.
|
27
28
|
# only administrators can send messages and there is no limit on number of members.
|
28
29
|
# @attr is_verified [Boolean] True, if the supergroup or channel is verified.
|
29
|
-
# @attr restriction_reason [String] If non-empty, contains a human-readable description of the reason why
|
30
|
-
# this supergroup or channel must be restricted.
|
30
|
+
# @attr restriction_reason [TD::Types::String] If non-empty, contains a human-readable description of the reason why
|
31
|
+
# access to this supergroup or channel must be restricted.
|
31
32
|
# @attr is_scam [Boolean] True, if many users reported this supergroup or channel as a scam.
|
32
33
|
# @attr is_fake [Boolean] True, if many users reported this supergroup or channel as a fake account.
|
33
34
|
class Supergroup < Base
|
34
|
-
attribute :id, TD::Types::Integer
|
35
|
+
attribute :id, TD::Types::Coercible::Integer
|
35
36
|
attribute :username, TD::Types::String.optional.default(nil)
|
36
|
-
attribute :date, TD::Types::Integer
|
37
|
+
attribute :date, TD::Types::Coercible::Integer
|
37
38
|
attribute :status, TD::Types::ChatMemberStatus
|
38
|
-
attribute :member_count, TD::Types::Integer
|
39
|
+
attribute :member_count, TD::Types::Coercible::Integer
|
39
40
|
attribute :has_linked_chat, TD::Types::Bool
|
40
41
|
attribute :has_location, TD::Types::Bool
|
41
42
|
attribute :sign_messages, TD::Types::Bool
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# Contains full information about a supergroup or channel.
|
3
3
|
#
|
4
4
|
# @attr photo [TD::Types::ChatPhoto, nil] Chat photo; may be null.
|
5
|
-
# @attr description [String] Supergroup or channel description.
|
5
|
+
# @attr description [TD::Types::String] Supergroup or channel description.
|
6
6
|
# @attr member_count [Integer] Number of members in the supergroup or channel; 0 if unknown.
|
7
7
|
# @attr administrator_count [Integer] Number of privileged users in the supergroup or channel; 0 if unknown.
|
8
8
|
# @attr restricted_count [Integer] Number of restricted users in the supergroup; 0 if unknown.
|
@@ -34,23 +34,23 @@ module TD::Types
|
|
34
34
|
class SupergroupFullInfo < Base
|
35
35
|
attribute :photo, TD::Types::ChatPhoto.optional.default(nil)
|
36
36
|
attribute :description, TD::Types::String
|
37
|
-
attribute :member_count, TD::Types::Integer
|
38
|
-
attribute :administrator_count, TD::Types::Integer
|
39
|
-
attribute :restricted_count, TD::Types::Integer
|
40
|
-
attribute :banned_count, TD::Types::Integer
|
41
|
-
attribute :linked_chat_id, TD::Types::Integer
|
42
|
-
attribute :slow_mode_delay, TD::Types::Integer
|
43
|
-
attribute :slow_mode_delay_expires_in, TD::Types::Float
|
37
|
+
attribute :member_count, TD::Types::Coercible::Integer
|
38
|
+
attribute :administrator_count, TD::Types::Coercible::Integer
|
39
|
+
attribute :restricted_count, TD::Types::Coercible::Integer
|
40
|
+
attribute :banned_count, TD::Types::Coercible::Integer
|
41
|
+
attribute :linked_chat_id, TD::Types::Coercible::Integer
|
42
|
+
attribute :slow_mode_delay, TD::Types::Coercible::Integer
|
43
|
+
attribute :slow_mode_delay_expires_in, TD::Types::Coercible::Float
|
44
44
|
attribute :can_get_members, TD::Types::Bool
|
45
45
|
attribute :can_set_username, TD::Types::Bool
|
46
46
|
attribute :can_set_sticker_set, TD::Types::Bool
|
47
47
|
attribute :can_set_location, TD::Types::Bool
|
48
48
|
attribute :can_get_statistics, TD::Types::Bool
|
49
49
|
attribute :is_all_history_available, TD::Types::Bool
|
50
|
-
attribute :sticker_set_id, TD::Types::Integer
|
50
|
+
attribute :sticker_set_id, TD::Types::Coercible::Integer
|
51
51
|
attribute :location, TD::Types::ChatLocation.optional.default(nil)
|
52
52
|
attribute :invite_link, TD::Types::ChatInviteLink.optional.default(nil)
|
53
|
-
attribute :upgraded_from_basic_group_id, TD::Types::Integer
|
54
|
-
attribute :upgraded_from_max_message_id, TD::Types::Integer
|
53
|
+
attribute :upgraded_from_basic_group_id, TD::Types::Coercible::Integer
|
54
|
+
attribute :upgraded_from_max_message_id, TD::Types::Coercible::Integer
|
55
55
|
end
|
56
56
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Returns users banned from the supergroup or channel; can be used only by administrators.
|
3
3
|
#
|
4
|
-
# @attr query [String] Query to search for.
|
4
|
+
# @attr query [TD::Types::String] Query to search for.
|
5
5
|
class SupergroupMembersFilter::Banned < SupergroupMembersFilter
|
6
6
|
attribute :query, TD::Types::String
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Returns contacts of the user, which are members of the supergroup or channel.
|
3
3
|
#
|
4
|
-
# @attr query [String] Query to search for.
|
4
|
+
# @attr query [TD::Types::String] Query to search for.
|
5
5
|
class SupergroupMembersFilter::Contacts < SupergroupMembersFilter
|
6
6
|
attribute :query, TD::Types::String
|
7
7
|
end
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Returns users which can be mentioned in the supergroup.
|
3
3
|
#
|
4
|
-
# @attr query [String] Query to search for.
|
4
|
+
# @attr query [TD::Types::String] Query to search for.
|
5
5
|
# @attr message_thread_id [Integer] If non-zero, the identifier of the current message thread.
|
6
6
|
class SupergroupMembersFilter::Mention < SupergroupMembersFilter
|
7
7
|
attribute :query, TD::Types::String
|
8
|
-
attribute :message_thread_id, TD::Types::Integer
|
8
|
+
attribute :message_thread_id, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Returns restricted supergroup members; can be used only by administrators.
|
3
3
|
#
|
4
|
-
# @attr query [String] Query to search for.
|
4
|
+
# @attr query [TD::Types::String] Query to search for.
|
5
5
|
class SupergroupMembersFilter::Restricted < SupergroupMembersFilter
|
6
6
|
attribute :query, TD::Types::String
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Used to search for supergroup or channel members via a (string) query.
|
3
3
|
#
|
4
|
-
# @attr query [String] Query to search for.
|
4
|
+
# @attr query [TD::Types::String] Query to search for.
|
5
5
|
class SupergroupMembersFilter::Search < SupergroupMembersFilter
|
6
6
|
attribute :query, TD::Types::String
|
7
7
|
end
|
data/lib/tdlib/types/t_me_url.rb
CHANGED
@@ -3,10 +3,10 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr use_test_dc [Boolean, nil] If set to true, the Telegram test environment will be used instead of the
|
5
5
|
# production environment.
|
6
|
-
# @attr database_directory [String, nil] The path to the directory for the persistent database; if empty,
|
7
|
-
# working directory will be used.
|
8
|
-
# @attr files_directory [String, nil] The path to the directory for storing files; if empty,
|
9
|
-
# be used.
|
6
|
+
# @attr database_directory [TD::Types::String, nil] The path to the directory for the persistent database; if empty,
|
7
|
+
# the current working directory will be used.
|
8
|
+
# @attr files_directory [TD::Types::String, nil] The path to the directory for storing files; if empty,
|
9
|
+
# database_directory will be used.
|
10
10
|
# @attr use_file_database [Boolean, nil] If set to true, information about downloaded and uploaded files will be
|
11
11
|
# saved between application restarts.
|
12
12
|
# @attr use_chat_info_database [Boolean, nil] If set to true, the library will maintain a cache of users, basic
|
@@ -17,13 +17,14 @@ module TD::Types
|
|
17
17
|
# @attr use_secret_chats [Boolean, nil] If set to true, support for secret chats will be enabled.
|
18
18
|
# @attr api_id [Integer, nil] Application identifier for Telegram API access, which can be obtained at
|
19
19
|
# https://my.telegram.org.
|
20
|
-
# @attr api_hash [String, nil] Application identifier hash for Telegram API access, which can be obtained
|
21
|
-
# https://my.telegram.org.
|
22
|
-
# @attr system_language_code [String] IETF language tag of the user's operating system language; must be
|
23
|
-
#
|
24
|
-
# @attr
|
20
|
+
# @attr api_hash [TD::Types::String, nil] Application identifier hash for Telegram API access, which can be obtained
|
21
|
+
# at https://my.telegram.org.
|
22
|
+
# @attr system_language_code [TD::Types::String] IETF language tag of the user's operating system language; must be
|
23
|
+
# non-empty.
|
24
|
+
# @attr device_model [TD::Types::String] Model of the device the application is being run on; must be non-empty.
|
25
|
+
# @attr system_version [TD::Types::String, nil] Version of the operating system the application is being run on.
|
25
26
|
# If empty, the version is automatically detected by TDLib.
|
26
|
-
# @attr application_version [String] Application version; must be non-empty.
|
27
|
+
# @attr application_version [TD::Types::String] Application version; must be non-empty.
|
27
28
|
# @attr enable_storage_optimizer [Boolean, nil] If set to true, old files will automatically be deleted.
|
28
29
|
# @attr ignore_file_names [Boolean, nil] If set to true, original file names will be ignored.
|
29
30
|
# Otherwise, downloaded files will be saved under names as close as possible to the original name.
|
@@ -35,7 +36,7 @@ module TD::Types
|
|
35
36
|
attribute :use_chat_info_database, TD::Types::Bool.optional.default(nil)
|
36
37
|
attribute :use_message_database, TD::Types::Bool.optional.default(nil)
|
37
38
|
attribute :use_secret_chats, TD::Types::Bool.optional.default(nil)
|
38
|
-
attribute :api_id, TD::Types::Integer.optional.default(nil)
|
39
|
+
attribute :api_id, TD::Types::Coercible::Integer.optional.default(nil)
|
39
40
|
attribute :api_hash, TD::Types::String.optional.default(nil)
|
40
41
|
attribute :system_language_code, TD::Types::String
|
41
42
|
attribute :device_model, TD::Types::String
|
@@ -5,6 +5,6 @@ module TD::Types
|
|
5
5
|
# @attr valid_for [Integer] Time left before the temporary password expires, in seconds.
|
6
6
|
class TemporaryPasswordState < Base
|
7
7
|
attribute :has_password, TD::Types::Bool
|
8
|
-
attribute :valid_for, TD::Types::Integer
|
8
|
+
attribute :valid_for, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -6,7 +6,7 @@ module TD::Types
|
|
6
6
|
# @attr show_popup [Boolean] True, if a blocking popup with terms of service must be shown to the user.
|
7
7
|
class TermsOfService < Base
|
8
8
|
attribute :text, TD::Types::FormattedText
|
9
|
-
attribute :min_user_age, TD::Types::Integer
|
9
|
+
attribute :min_user_age, TD::Types::Coercible::Integer
|
10
10
|
attribute :show_popup, TD::Types::Bool
|
11
11
|
end
|
12
12
|
end
|
data/lib/tdlib/types/text.rb
CHANGED
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr length [Integer] Length of the entity, in UTF-16 code units.
|
6
6
|
# @attr type [TD::Types::TextEntityType] Type of the entity.
|
7
7
|
class TextEntity < Base
|
8
|
-
attribute :offset, TD::Types::Integer
|
9
|
-
attribute :length, TD::Types::Integer
|
8
|
+
attribute :offset, TD::Types::Coercible::Integer
|
9
|
+
attribute :length, TD::Types::Coercible::Integer
|
10
10
|
attribute :type, TD::Types::TextEntityType
|
11
11
|
end
|
12
12
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Text that must be formatted as if inside pre, and code HTML tags.
|
3
3
|
#
|
4
|
-
# @attr language [String] Programming language of the code; as defined by the sender.
|
4
|
+
# @attr language [TD::Types::String] Programming language of the code; as defined by the sender.
|
5
5
|
class TextEntityType::PreCode < TextEntityType
|
6
6
|
attribute :language, TD::Types::String
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A text description shown instead of a raw URL.
|
3
3
|
#
|
4
|
-
# @attr url [String] HTTP or tg:// URL to be opened when the link is clicked.
|
4
|
+
# @attr url [TD::Types::String] HTTP or tg:// URL to be opened when the link is clicked.
|
5
5
|
class TextEntityType::TextUrl < TextEntityType
|
6
6
|
attribute :url, TD::Types::String
|
7
7
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
# @attr version [Integer] Version of the parser: 0 or 1 - Telegram Bot API "Markdown" parse mode, 2 - Telegram Bot
|
5
5
|
# API "MarkdownV2" parse mode.
|
6
6
|
class TextParseMode::Markdown < TextParseMode
|
7
|
-
attribute :version, TD::Types::Integer
|
7
|
+
attribute :version, TD::Types::Coercible::Integer
|
8
8
|
end
|
9
9
|
end
|
@@ -7,8 +7,8 @@ module TD::Types
|
|
7
7
|
# @attr file [TD::Types::File] The thumbnail.
|
8
8
|
class Thumbnail < Base
|
9
9
|
attribute :format, TD::Types::ThumbnailFormat
|
10
|
-
attribute :width, TD::Types::Integer
|
11
|
-
attribute :height, TD::Types::Integer
|
10
|
+
attribute :width, TD::Types::Coercible::Integer
|
11
|
+
attribute :height, TD::Types::Coercible::Integer
|
12
12
|
attribute :file, TD::Types::File
|
13
13
|
end
|
14
14
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# The parameters of animation search through GetOption("animation_search_bot_username") bot has changed.
|
3
3
|
#
|
4
|
-
# @attr provider [String] Name of the animation search provider.
|
5
|
-
# @attr emojis [Array<String>] The new list of emojis suggested for searching.
|
4
|
+
# @attr provider [TD::Types::String] Name of the animation search provider.
|
5
|
+
# @attr emojis [Array<TD::Types::String>] The new list of emojis suggested for searching.
|
6
6
|
class Update::AnimationSearchParameters < Update
|
7
7
|
attribute :provider, TD::Types::String
|
8
8
|
attribute :emojis, TD::Types::Array.of(TD::Types::String)
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr basic_group_id [Integer] Identifier of a basic group.
|
5
5
|
# @attr basic_group_full_info [TD::Types::BasicGroupFullInfo] New full information about the group.
|
6
6
|
class Update::BasicGroupFullInfo < Update
|
7
|
-
attribute :basic_group_id, TD::Types::Integer
|
7
|
+
attribute :basic_group_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :basic_group_full_info, TD::Types::BasicGroupFullInfo
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr action_bar [TD::Types::ChatActionBar, nil] The new value of the action bar; may be null.
|
6
6
|
class Update::ChatActionBar < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :action_bar, TD::Types::ChatActionBar.optional.default(nil)
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr default_disable_notification [Boolean] The new default_disable_notification value.
|
6
6
|
class Update::ChatDefaultDisableNotification < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :default_disable_notification, TD::Types::Bool
|
9
9
|
end
|
10
10
|
end
|
@@ -7,7 +7,7 @@ module TD::Types
|
|
7
7
|
# @attr draft_message [TD::Types::DraftMessage, nil] The new draft message; may be null.
|
8
8
|
# @attr positions [Array<TD::Types::ChatPosition>] The new chat positions in the chat lists.
|
9
9
|
class Update::ChatDraftMessage < Update
|
10
|
-
attribute :chat_id, TD::Types::Integer
|
10
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
11
11
|
attribute :draft_message, TD::Types::DraftMessage.optional.default(nil)
|
12
12
|
attribute :positions, TD::Types::Array.of(TD::Types::ChatPosition)
|
13
13
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr has_scheduled_messages [Boolean] New value of has_scheduled_messages.
|
6
6
|
class Update::ChatHasScheduledMessages < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :has_scheduled_messages, TD::Types::Bool
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr is_blocked [Boolean] New value of is_blocked.
|
6
6
|
class Update::ChatIsBlocked < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :is_blocked, TD::Types::Bool
|
9
9
|
end
|
10
10
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr is_marked_as_unread [Boolean] New value of is_marked_as_unread.
|
6
6
|
class Update::ChatIsMarkedAsUnread < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :is_marked_as_unread, TD::Types::Bool
|
9
9
|
end
|
10
10
|
end
|
@@ -7,7 +7,7 @@ module TD::Types
|
|
7
7
|
# @attr last_message [TD::Types::Message, nil] The new last message in the chat; may be null.
|
8
8
|
# @attr positions [Array<TD::Types::ChatPosition>] The new chat positions in the chat lists.
|
9
9
|
class Update::ChatLastMessage < Update
|
10
|
-
attribute :chat_id, TD::Types::Integer
|
10
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
11
11
|
attribute :last_message, TD::Types::Message.optional.default(nil)
|
12
12
|
attribute :positions, TD::Types::Array.of(TD::Types::ChatPosition)
|
13
13
|
end
|
@@ -9,9 +9,9 @@ module TD::Types
|
|
9
9
|
# @attr old_chat_member [TD::Types::ChatMember] Previous chat member.
|
10
10
|
# @attr new_chat_member [TD::Types::ChatMember] New chat member.
|
11
11
|
class Update::ChatMember < Update
|
12
|
-
attribute :chat_id, TD::Types::Integer
|
13
|
-
attribute :actor_user_id, TD::Types::Integer
|
14
|
-
attribute :date, TD::Types::Integer
|
12
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
13
|
+
attribute :actor_user_id, TD::Types::Coercible::Integer
|
14
|
+
attribute :date, TD::Types::Coercible::Integer
|
15
15
|
attribute :invite_link, TD::Types::ChatInviteLink.optional.default(nil)
|
16
16
|
attribute :old_chat_member, TD::Types::ChatMember
|
17
17
|
attribute :new_chat_member, TD::Types::ChatMember
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr message_ttl_setting [Integer] New value of message_ttl_setting.
|
6
6
|
class Update::ChatMessageTtlSetting < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
8
|
-
attribute :message_ttl_setting, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
|
+
attribute :message_ttl_setting, 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 notification_settings [TD::Types::ChatNotificationSettings] The new notification settings.
|
6
6
|
class Update::ChatNotificationSettings < Update
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :notification_settings, TD::Types::ChatNotificationSettings
|
9
9
|
end
|
10
10
|
end
|