tdlib-schema 1.7.0.1 → 1.7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/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
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
# @attr send_date [Integer] Date the message will be sent.
|
5
5
|
# The date must be within 367 days in the future.
|
6
6
|
class MessageSchedulingState::SendAtDate < MessageSchedulingState
|
7
|
-
attribute :send_date, TD::Types::Integer
|
7
|
+
attribute :send_date, TD::Types::Coercible::Integer
|
8
8
|
end
|
9
9
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr total_count [Integer] Approximate total count of messages senders found.
|
5
5
|
# @attr senders [Array<TD::Types::MessageSender>] List of message senders.
|
6
6
|
class MessageSenders < Base
|
7
|
-
attribute :total_count, TD::Types::Integer
|
7
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
8
8
|
attribute :senders, TD::Types::Array.of(TD::Types::MessageSender)
|
9
9
|
end
|
10
10
|
end
|
@@ -2,14 +2,14 @@ module TD::Types
|
|
2
2
|
# The message failed to be sent.
|
3
3
|
#
|
4
4
|
# @attr error_code [Integer] An error code; 0 if unknown.
|
5
|
-
# @attr error_message [String] Error message.
|
5
|
+
# @attr error_message [TD::Types::String] Error message.
|
6
6
|
# @attr can_retry [Boolean] True, if the message can be re-sent.
|
7
7
|
# @attr retry_after [Float] Time left before the message can be re-sent, in seconds.
|
8
8
|
# No update is sent when this field changes.
|
9
9
|
class MessageSendingState::Failed < MessageSendingState
|
10
|
-
attribute :error_code, TD::Types::Integer
|
10
|
+
attribute :error_code, TD::Types::Coercible::Integer
|
11
11
|
attribute :error_message, TD::Types::String
|
12
12
|
attribute :can_retry, TD::Types::Bool
|
13
|
-
attribute :retry_after, TD::Types::Float
|
13
|
+
attribute :retry_after, TD::Types::Coercible::Float
|
14
14
|
end
|
15
15
|
end
|
@@ -8,8 +8,8 @@ module TD::Types
|
|
8
8
|
# The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id).
|
9
9
|
# @attr draft_message [TD::Types::DraftMessage, nil] A draft of a message in the message thread; may be null.
|
10
10
|
class MessageThreadInfo < Base
|
11
|
-
attribute :chat_id, TD::Types::Integer
|
12
|
-
attribute :message_thread_id, TD::Types::Integer
|
11
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
12
|
+
attribute :message_thread_id, TD::Types::Coercible::Integer
|
13
13
|
attribute :reply_info, TD::Types::MessageReplyInfo
|
14
14
|
attribute :messages, TD::Types::Array.of(TD::Types::Message)
|
15
15
|
attribute :draft_message, TD::Types::DraftMessage.optional.default(nil)
|
data/lib/tdlib/types/messages.rb
CHANGED
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr total_count [Integer] Approximate total count of messages found.
|
5
5
|
# @attr messages [Array<TD::Types::Message>, nil] List of messages; messages may be null.
|
6
6
|
class Messages < Base
|
7
|
-
attribute :total_count, TD::Types::Integer
|
7
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
8
8
|
attribute :messages, TD::Types::Array.of(TD::Types::Message).optional.default(nil)
|
9
9
|
end
|
10
10
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr height [Integer] Thumbnail height, usually doesn't exceed 40.
|
6
6
|
# @attr data [String] The thumbnail in JPEG format.
|
7
7
|
class Minithumbnail < Base
|
8
|
-
attribute :width, TD::Types::Integer
|
9
|
-
attribute :height, TD::Types::Integer
|
10
|
-
attribute :data, TD::Types::String
|
8
|
+
attribute :width, TD::Types::Coercible::Integer
|
9
|
+
attribute :height, TD::Types::Coercible::Integer
|
10
|
+
attribute :data, TD::Types::Coercible::String
|
11
11
|
end
|
12
12
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr since_date [Integer] Point in time (Unix timestamp) from which the statistics are collected.
|
5
5
|
# @attr entries [Array<TD::Types::NetworkStatisticsEntry>] Network statistics entries.
|
6
6
|
class NetworkStatistics < Base
|
7
|
-
attribute :since_date, TD::Types::Integer
|
7
|
+
attribute :since_date, TD::Types::Coercible::Integer
|
8
8
|
attribute :entries, TD::Types::Array.of(TD::Types::NetworkStatisticsEntry)
|
9
9
|
end
|
10
10
|
end
|
@@ -8,8 +8,8 @@ module TD::Types
|
|
8
8
|
# @attr duration [Float] Total call duration, in seconds.
|
9
9
|
class NetworkStatisticsEntry::Call < NetworkStatisticsEntry
|
10
10
|
attribute :network_type, TD::Types::NetworkType
|
11
|
-
attribute :sent_bytes, TD::Types::Integer
|
12
|
-
attribute :received_bytes, TD::Types::Integer
|
13
|
-
attribute :duration, TD::Types::Float
|
11
|
+
attribute :sent_bytes, TD::Types::Coercible::Integer
|
12
|
+
attribute :received_bytes, TD::Types::Coercible::Integer
|
13
|
+
attribute :duration, TD::Types::Coercible::Float
|
14
14
|
end
|
15
15
|
end
|
@@ -9,7 +9,7 @@ module TD::Types
|
|
9
9
|
class NetworkStatisticsEntry::File < NetworkStatisticsEntry
|
10
10
|
attribute :file_type, TD::Types::FileType
|
11
11
|
attribute :network_type, TD::Types::NetworkType
|
12
|
-
attribute :sent_bytes, TD::Types::Integer
|
13
|
-
attribute :received_bytes, TD::Types::Integer
|
12
|
+
attribute :sent_bytes, TD::Types::Coercible::Integer
|
13
|
+
attribute :received_bytes, TD::Types::Coercible::Integer
|
14
14
|
end
|
15
15
|
end
|
@@ -6,8 +6,8 @@ module TD::Types
|
|
6
6
|
# @attr is_silent [Boolean] True, if the notification was initially silent.
|
7
7
|
# @attr type [TD::Types::NotificationType] Notification type.
|
8
8
|
class Notification < Base
|
9
|
-
attribute :id, TD::Types::Integer
|
10
|
-
attribute :date, TD::Types::Integer
|
9
|
+
attribute :id, TD::Types::Coercible::Integer
|
10
|
+
attribute :date, TD::Types::Coercible::Integer
|
11
11
|
attribute :is_silent, TD::Types::Bool
|
12
12
|
attribute :type, TD::Types::NotificationType
|
13
13
|
end
|
@@ -7,10 +7,10 @@ module TD::Types
|
|
7
7
|
# @attr total_count [Integer] Total number of active notifications in the group.
|
8
8
|
# @attr notifications [Array<TD::Types::Notification>] The list of active notifications.
|
9
9
|
class NotificationGroup < Base
|
10
|
-
attribute :id, TD::Types::Integer
|
10
|
+
attribute :id, TD::Types::Coercible::Integer
|
11
11
|
attribute :type, TD::Types::NotificationGroupType
|
12
|
-
attribute :chat_id, TD::Types::Integer
|
13
|
-
attribute :total_count, TD::Types::Integer
|
12
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
13
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
14
14
|
attribute :notifications, TD::Types::Array.of(TD::Types::Notification)
|
15
15
|
end
|
16
16
|
end
|
@@ -6,11 +6,11 @@ module TD::Types
|
|
6
6
|
# reply_to_message_id.
|
7
7
|
# @attr sender [TD::Types::MessageSender] The sender of the message.
|
8
8
|
# Corresponding user or chat may be inaccessible.
|
9
|
-
# @attr sender_name [String] Name of the sender.
|
9
|
+
# @attr sender_name [TD::Types::String] Name of the sender.
|
10
10
|
# @attr is_outgoing [Boolean] True, if the message is outgoing.
|
11
11
|
# @attr content [TD::Types::PushMessageContent] Push message content.
|
12
12
|
class NotificationType::NewPushMessage < NotificationType
|
13
|
-
attribute :message_id, TD::Types::Integer
|
13
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
14
14
|
attribute :sender, TD::Types::MessageSender
|
15
15
|
attribute :sender_name, TD::Types::String
|
16
16
|
attribute :is_outgoing, TD::Types::Bool
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Order information.
|
3
3
|
#
|
4
|
-
# @attr name [String] Name of the user.
|
5
|
-
# @attr phone_number [String] Phone number of the user.
|
6
|
-
# @attr email_address [String] Email address of the user.
|
4
|
+
# @attr name [TD::Types::String] Name of the user.
|
5
|
+
# @attr phone_number [TD::Types::String] Phone number of the user.
|
6
|
+
# @attr email_address [TD::Types::String] Email address of the user.
|
7
7
|
# @attr shipping_address [TD::Types::Address, nil] Shipping address for this order; may be null.
|
8
8
|
class OrderInfo < Base
|
9
9
|
attribute :name, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# An invisible anchor on a page, which can be used in a URL to open the page from the specified anchor.
|
3
3
|
#
|
4
|
-
# @attr name [String] Name of the anchor.
|
4
|
+
# @attr name [TD::Types::String] Name of the anchor.
|
5
5
|
class PageBlock::Anchor < PageBlock
|
6
6
|
attribute :name, TD::Types::String
|
7
7
|
end
|
@@ -5,6 +5,6 @@ module TD::Types
|
|
5
5
|
# @attr publish_date [Integer] Point in time (Unix timestamp) when the article was published; 0 if unknown.
|
6
6
|
class PageBlock::AuthorDate < PageBlock
|
7
7
|
attribute :author, TD::Types::RichText
|
8
|
-
attribute :publish_date, TD::Types::Integer
|
8
|
+
attribute :publish_date, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A link to a chat.
|
3
3
|
#
|
4
|
-
# @attr title [String] Chat title.
|
4
|
+
# @attr title [TD::Types::String] Chat title.
|
5
5
|
# @attr photo [TD::Types::ChatPhotoInfo, nil] Chat photo; may be null.
|
6
|
-
# @attr username [String] Chat username, by which all other information about the chat should be resolved.
|
6
|
+
# @attr username [TD::Types::String] Chat username, by which all other information about the chat should be resolved.
|
7
7
|
class PageBlock::ChatLink < PageBlock
|
8
8
|
attribute :title, TD::Types::String
|
9
9
|
attribute :photo, TD::Types::ChatPhotoInfo.optional.default(nil)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# An embedded web page.
|
3
3
|
#
|
4
|
-
# @attr url [String, nil] Web page URL, if available.
|
5
|
-
# @attr html [String] HTML-markup of the embedded page.
|
4
|
+
# @attr url [TD::Types::String, nil] Web page URL, if available.
|
5
|
+
# @attr html [TD::Types::String] HTML-markup of the embedded page.
|
6
6
|
# @attr poster_photo [TD::Types::Photo, nil] Poster photo, if available; may be null.
|
7
7
|
# @attr width [Integer] Block width; 0 if unknown.
|
8
8
|
# @attr height [Integer] Block height; 0 if unknown.
|
@@ -13,8 +13,8 @@ module TD::Types
|
|
13
13
|
attribute :url, TD::Types::String.optional.default(nil)
|
14
14
|
attribute :html, TD::Types::String
|
15
15
|
attribute :poster_photo, TD::Types::Photo.optional.default(nil)
|
16
|
-
attribute :width, TD::Types::Integer
|
17
|
-
attribute :height, TD::Types::Integer
|
16
|
+
attribute :width, TD::Types::Coercible::Integer
|
17
|
+
attribute :height, TD::Types::Coercible::Integer
|
18
18
|
attribute :caption, TD::Types::PageBlockCaption
|
19
19
|
attribute :is_full_width, TD::Types::Bool
|
20
20
|
attribute :allow_scrolling, TD::Types::Bool
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# An embedded post.
|
3
3
|
#
|
4
|
-
# @attr url [String] Web page URL.
|
5
|
-
# @attr author [String] Post author.
|
4
|
+
# @attr url [TD::Types::String] Web page URL.
|
5
|
+
# @attr author [TD::Types::String] Post author.
|
6
6
|
# @attr author_photo [TD::Types::Photo, nil] Post author photo; may be null.
|
7
7
|
# @attr date [Integer] Point in time (Unix timestamp) when the post was created; 0 if unknown.
|
8
8
|
# @attr page_blocks [Array<TD::Types::PageBlock>] Post content.
|
@@ -11,7 +11,7 @@ module TD::Types
|
|
11
11
|
attribute :url, TD::Types::String
|
12
12
|
attribute :author, TD::Types::String
|
13
13
|
attribute :author_photo, TD::Types::Photo.optional.default(nil)
|
14
|
-
attribute :date, TD::Types::Integer
|
14
|
+
attribute :date, TD::Types::Coercible::Integer
|
15
15
|
attribute :page_blocks, TD::Types::Array.of(TD::Types::PageBlock)
|
16
16
|
attribute :caption, TD::Types::PageBlockCaption
|
17
17
|
end
|
@@ -8,9 +8,9 @@ module TD::Types
|
|
8
8
|
# @attr caption [TD::Types::PageBlockCaption] Block caption.
|
9
9
|
class PageBlock::Map < PageBlock
|
10
10
|
attribute :location, TD::Types::Location
|
11
|
-
attribute :zoom, TD::Types::Integer
|
12
|
-
attribute :width, TD::Types::Integer
|
13
|
-
attribute :height, TD::Types::Integer
|
11
|
+
attribute :zoom, TD::Types::Coercible::Integer
|
12
|
+
attribute :width, TD::Types::Coercible::Integer
|
13
|
+
attribute :height, TD::Types::Coercible::Integer
|
14
14
|
attribute :caption, TD::Types::PageBlockCaption
|
15
15
|
end
|
16
16
|
end
|
@@ -3,7 +3,7 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr photo [TD::Types::Photo, nil] Photo file; may be null.
|
5
5
|
# @attr caption [TD::Types::PageBlockCaption] Photo caption.
|
6
|
-
# @attr url [String] URL that needs to be opened when the photo is clicked.
|
6
|
+
# @attr url [TD::Types::String] URL that needs to be opened when the photo is clicked.
|
7
7
|
class PageBlock::Photo < PageBlock
|
8
8
|
attribute :photo, TD::Types::Photo.optional.default(nil)
|
9
9
|
attribute :caption, TD::Types::PageBlockCaption
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# A preformatted text paragraph.
|
3
3
|
#
|
4
4
|
# @attr text [TD::Types::RichText] Paragraph text.
|
5
|
-
# @attr language [String] Programming language for which the text should be formatted.
|
5
|
+
# @attr language [TD::Types::String] Programming language for which the text should be formatted.
|
6
6
|
class PageBlock::Preformatted < PageBlock
|
7
7
|
attribute :text, TD::Types::RichText
|
8
8
|
attribute :language, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Describes an item of a list page block.
|
3
3
|
#
|
4
|
-
# @attr label [String] Item label.
|
4
|
+
# @attr label [TD::Types::String] Item label.
|
5
5
|
# @attr page_blocks [Array<TD::Types::PageBlock>] Item blocks.
|
6
6
|
class PageBlockListItem < Base
|
7
7
|
attribute :label, TD::Types::String
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains information about a related article.
|
3
3
|
#
|
4
|
-
# @attr url [String] Related article URL.
|
5
|
-
# @attr title [String, nil] Article title; may be empty.
|
6
|
-
# @attr description [String, nil] Article description; may be empty.
|
4
|
+
# @attr url [TD::Types::String] Related article URL.
|
5
|
+
# @attr title [TD::Types::String, nil] Article title; may be empty.
|
6
|
+
# @attr description [TD::Types::String, nil] Article description; may be empty.
|
7
7
|
# @attr photo [TD::Types::Photo, nil] Article photo; may be null.
|
8
|
-
# @attr author [String, nil] Article author; may be empty.
|
8
|
+
# @attr author [TD::Types::String, nil] Article author; may be empty.
|
9
9
|
# @attr publish_date [Integer] Point in time (Unix timestamp) when the article was published; 0 if unknown.
|
10
10
|
class PageBlockRelatedArticle < Base
|
11
11
|
attribute :url, TD::Types::String
|
@@ -13,6 +13,6 @@ module TD::Types
|
|
13
13
|
attribute :description, TD::Types::String.optional.default(nil)
|
14
14
|
attribute :photo, TD::Types::Photo.optional.default(nil)
|
15
15
|
attribute :author, TD::Types::String.optional.default(nil)
|
16
|
-
attribute :publish_date, TD::Types::Integer
|
16
|
+
attribute :publish_date, TD::Types::Coercible::Integer
|
17
17
|
end
|
18
18
|
end
|
@@ -11,8 +11,8 @@ module TD::Types
|
|
11
11
|
class PageBlockTableCell < Base
|
12
12
|
attribute :text, TD::Types::RichText.optional.default(nil)
|
13
13
|
attribute :is_header, TD::Types::Bool
|
14
|
-
attribute :colspan, TD::Types::Integer
|
15
|
-
attribute :rowspan, TD::Types::Integer
|
14
|
+
attribute :colspan, TD::Types::Coercible::Integer
|
15
|
+
attribute :rowspan, TD::Types::Coercible::Integer
|
16
16
|
attribute :align, TD::Types::PageBlockHorizontalAlignment
|
17
17
|
attribute :valign, TD::Types::PageBlockVerticalAlignment
|
18
18
|
end
|
@@ -4,9 +4,9 @@ module TD::Types
|
|
4
4
|
# @attr id [Integer] Unique identifier of the authorization form.
|
5
5
|
# @attr required_elements [Array<TD::Types::PassportRequiredElement>] Information about the Telegram Passport
|
6
6
|
# elements that must be provided to complete the form.
|
7
|
-
# @attr privacy_policy_url [String, nil] URL for the privacy policy of the service; may be empty.
|
7
|
+
# @attr privacy_policy_url [TD::Types::String, nil] URL for the privacy policy of the service; may be empty.
|
8
8
|
class PassportAuthorizationForm < Base
|
9
|
-
attribute :id, TD::Types::Integer
|
9
|
+
attribute :id, TD::Types::Coercible::Integer
|
10
10
|
attribute :required_elements, TD::Types::Array.of(TD::Types::PassportRequiredElement)
|
11
11
|
attribute :privacy_policy_url, TD::Types::String.optional.default(nil)
|
12
12
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A Telegram Passport element containing the user's email address.
|
3
3
|
#
|
4
|
-
# @attr email_address [String] Email address.
|
4
|
+
# @attr email_address [TD::Types::String] Email address.
|
5
5
|
class PassportElement::EmailAddress < PassportElement
|
6
6
|
attribute :email_address, TD::Types::String
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A Telegram Passport element containing the user's phone number.
|
3
3
|
#
|
4
|
-
# @attr phone_number [String] Phone number.
|
4
|
+
# @attr phone_number [TD::Types::String] Phone number.
|
5
5
|
class PassportElement::PhoneNumber < PassportElement
|
6
6
|
attribute :phone_number, TD::Types::String
|
7
7
|
end
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# Contains the description of an error in a Telegram Passport element.
|
3
3
|
#
|
4
4
|
# @attr type [TD::Types::PassportElementType] Type of the Telegram Passport element which has the error.
|
5
|
-
# @attr message [String] Error message.
|
5
|
+
# @attr message [TD::Types::String] Error message.
|
6
6
|
# @attr source [TD::Types::PassportElementErrorSource] Error source.
|
7
7
|
class PassportElementError < Base
|
8
8
|
attribute :type, TD::Types::PassportElementType
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# One of the data fields contains an error.
|
3
3
|
# The error will be considered resolved when the value of the field changes.
|
4
4
|
#
|
5
|
-
# @attr field_name [String] Field name.
|
5
|
+
# @attr field_name [TD::Types::String] Field name.
|
6
6
|
class PassportElementErrorSource::DataField < PassportElementErrorSource
|
7
7
|
attribute :field_name, TD::Types::String
|
8
8
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_index [Integer] Index of a file with the error.
|
6
6
|
class PassportElementErrorSource::TranslationFile < PassportElementErrorSource
|
7
|
-
attribute :file_index, TD::Types::Integer
|
7
|
+
attribute :file_index, TD::Types::Coercible::Integer
|
8
8
|
end
|
9
9
|
end
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# Represents the current state of 2-step verification.
|
3
3
|
#
|
4
4
|
# @attr has_password [Boolean] True, if a 2-step verification password is set.
|
5
|
-
# @attr password_hint [String, nil] Hint for the password; may be empty.
|
5
|
+
# @attr password_hint [TD::Types::String, nil] Hint for the password; may be empty.
|
6
6
|
# @attr has_recovery_email_address [Boolean] True, if a recovery email is set.
|
7
7
|
# @attr has_passport_data [Boolean] True, if some Telegram Passport elements were saved.
|
8
8
|
# @attr recovery_email_address_code_info [TD::Types::EmailAddressAuthenticationCodeInfo, nil] Information about the
|