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
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# Contains the description of an error in a Telegram Passport element; for bots only.
|
3
3
|
#
|
4
4
|
# @attr type [TD::Types::PassportElementType] Type of Telegram Passport element that has the error.
|
5
|
-
# @attr message [String] Error message.
|
5
|
+
# @attr message [TD::Types::String] Error message.
|
6
6
|
# @attr source [TD::Types::InputPassportElementErrorSource] Error source.
|
7
7
|
class InputPassportElementError < Base
|
8
8
|
attribute :type, TD::Types::PassportElementType
|
@@ -2,10 +2,10 @@ module TD::Types
|
|
2
2
|
# A data field contains an error.
|
3
3
|
# The error is considered resolved when the field's value changes.
|
4
4
|
#
|
5
|
-
# @attr field_name [String] Field name.
|
5
|
+
# @attr field_name [TD::Types::String] Field name.
|
6
6
|
# @attr data_hash [String] Current data hash.
|
7
7
|
class InputPassportElementErrorSource::DataField < InputPassportElementErrorSource
|
8
8
|
attribute :field_name, TD::Types::String
|
9
|
-
attribute :data_hash, TD::Types::String
|
9
|
+
attribute :data_hash, TD::Types::Coercible::String
|
10
10
|
end
|
11
11
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_hash [String] Current hash of the file which has the error.
|
6
6
|
class InputPassportElementErrorSource::File < InputPassportElementErrorSource
|
7
|
-
attribute :file_hash, TD::Types::String
|
7
|
+
attribute :file_hash, TD::Types::Coercible::String
|
8
8
|
end
|
9
9
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_hashes [Array<String>] Current hashes of all attached files.
|
6
6
|
class InputPassportElementErrorSource::Files < InputPassportElementErrorSource
|
7
|
-
attribute :file_hashes, TD::Types::Array.of(TD::Types::String)
|
7
|
+
attribute :file_hashes, TD::Types::Array.of(TD::Types::Coercible::String)
|
8
8
|
end
|
9
9
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_hash [String] Current hash of the file containing the front side.
|
6
6
|
class InputPassportElementErrorSource::FrontSide < InputPassportElementErrorSource
|
7
|
-
attribute :file_hash, TD::Types::String
|
7
|
+
attribute :file_hash, TD::Types::Coercible::String
|
8
8
|
end
|
9
9
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_hash [String] Current hash of the file containing the reverse side.
|
6
6
|
class InputPassportElementErrorSource::ReverseSide < InputPassportElementErrorSource
|
7
|
-
attribute :file_hash, TD::Types::String
|
7
|
+
attribute :file_hash, TD::Types::Coercible::String
|
8
8
|
end
|
9
9
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_hash [String] Current hash of the file containing the selfie.
|
6
6
|
class InputPassportElementErrorSource::Selfie < InputPassportElementErrorSource
|
7
|
-
attribute :file_hash, TD::Types::String
|
7
|
+
attribute :file_hash, TD::Types::Coercible::String
|
8
8
|
end
|
9
9
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_hash [String] Current hash of the file containing the translation.
|
6
6
|
class InputPassportElementErrorSource::TranslationFile < InputPassportElementErrorSource
|
7
|
-
attribute :file_hash, TD::Types::String
|
7
|
+
attribute :file_hash, TD::Types::Coercible::String
|
8
8
|
end
|
9
9
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr file_hashes [Array<String>] Current hashes of all files with the translation.
|
6
6
|
class InputPassportElementErrorSource::TranslationFiles < InputPassportElementErrorSource
|
7
|
-
attribute :file_hashes, TD::Types::Array.of(TD::Types::String)
|
7
|
+
attribute :file_hashes, TD::Types::Array.of(TD::Types::Coercible::String)
|
8
8
|
end
|
9
9
|
end
|
@@ -4,6 +4,6 @@ module TD::Types
|
|
4
4
|
#
|
5
5
|
# @attr element_hash [String] Current hash of the entire element.
|
6
6
|
class InputPassportElementErrorSource::Unspecified < InputPassportElementErrorSource
|
7
|
-
attribute :element_hash, TD::Types::String
|
7
|
+
attribute :element_hash, TD::Types::Coercible::String
|
8
8
|
end
|
9
9
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr sticker [TD::Types::InputFile] File with the animated sticker.
|
5
5
|
# Only local or uploaded within a week files are supported.
|
6
6
|
# See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements.
|
7
|
-
# @attr emojis [String] Emojis corresponding to the sticker.
|
7
|
+
# @attr emojis [TD::Types::String] Emojis corresponding to the sticker.
|
8
8
|
class InputSticker::Animated < InputSticker
|
9
9
|
attribute :sticker, TD::Types::InputFile
|
10
10
|
attribute :emojis, TD::Types::String
|
@@ -3,7 +3,7 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr sticker [TD::Types::InputFile] PNG image with the sticker; must be up to 512 KB in size and fit in a 512x512
|
5
5
|
# square.
|
6
|
-
# @attr emojis [String] Emojis corresponding to the sticker.
|
6
|
+
# @attr emojis [TD::Types::String] Emojis corresponding to the sticker.
|
7
7
|
# @attr mask_position [TD::Types::MaskPosition, nil] For masks, position where the mask should be placed; may be
|
8
8
|
# null.
|
9
9
|
class InputSticker::Static < InputSticker
|
@@ -10,7 +10,7 @@ module TD::Types
|
|
10
10
|
# Use 0 if unknown.
|
11
11
|
class InputThumbnail < Base
|
12
12
|
attribute :thumbnail, TD::Types::InputFile
|
13
|
-
attribute :width, TD::Types::Integer
|
14
|
-
attribute :height, TD::Types::Integer
|
13
|
+
attribute :width, TD::Types::Coercible::Integer
|
14
|
+
attribute :height, TD::Types::Coercible::Integer
|
15
15
|
end
|
16
16
|
end
|
data/lib/tdlib/types/invoice.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Product invoice.
|
3
3
|
#
|
4
|
-
# @attr currency [String] ISO 4217 currency code.
|
4
|
+
# @attr currency [TD::Types::String] ISO 4217 currency code.
|
5
5
|
# @attr price_parts [Array<TD::Types::LabeledPricePart>] A list of objects used to calculate the total price of the
|
6
6
|
# product.
|
7
7
|
# @attr max_tip_amount [Integer] The maximum allowed amount of tip in the smallest units of the currency.
|
@@ -17,8 +17,8 @@ module TD::Types
|
|
17
17
|
class Invoice < Base
|
18
18
|
attribute :currency, TD::Types::String
|
19
19
|
attribute :price_parts, TD::Types::Array.of(TD::Types::LabeledPricePart)
|
20
|
-
attribute :max_tip_amount, TD::Types::Integer
|
21
|
-
attribute :suggested_tip_amounts, TD::Types::Array.of(TD::Types::Integer)
|
20
|
+
attribute :max_tip_amount, TD::Types::Coercible::Integer
|
21
|
+
attribute :suggested_tip_amounts, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
22
22
|
attribute :is_test, TD::Types::Bool
|
23
23
|
attribute :need_name, TD::Types::Bool
|
24
24
|
attribute :need_phone_number, TD::Types::Bool
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents one member of a JSON object.
|
3
3
|
#
|
4
|
-
# @attr key [String] Member's key.
|
4
|
+
# @attr key [TD::Types::String] Member's key.
|
5
5
|
# @attr value [TD::Types::JsonValue] Member's value.
|
6
6
|
class JsonObjectMember < Base
|
7
7
|
attribute :key, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a single button in a bot keyboard.
|
3
3
|
#
|
4
|
-
# @attr text [String] Text of the button.
|
4
|
+
# @attr text [TD::Types::String] Text of the button.
|
5
5
|
# @attr type [TD::Types::KeyboardButtonType] Type of the button.
|
6
6
|
class KeyboardButton < Base
|
7
7
|
attribute :text, TD::Types::String
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Portion of the price of a product (e.g., "delivery cost", "tax amount").
|
3
3
|
#
|
4
|
-
# @attr label [String] Label for this portion of the product price.
|
4
|
+
# @attr label [TD::Types::String] Label for this portion of the product price.
|
5
5
|
# @attr amount [Integer] Currency amount in the smallest units of the currency.
|
6
6
|
class LabeledPricePart < Base
|
7
7
|
attribute :label, TD::Types::String
|
8
|
-
attribute :amount, TD::Types::Integer
|
8
|
+
attribute :amount, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains information about a language pack.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique language pack identifier.
|
5
|
-
# @attr base_language_pack_id [String, nil] Identifier of a base language pack; may be empty.
|
4
|
+
# @attr id [TD::Types::String] Unique language pack identifier.
|
5
|
+
# @attr base_language_pack_id [TD::Types::String, nil] Identifier of a base language pack; may be empty.
|
6
6
|
# If a string is missed in the language pack, then it should be fetched from base language pack.
|
7
7
|
# Unsupported in custom language packs.
|
8
|
-
# @attr name [String] Language name.
|
9
|
-
# @attr native_name [String] Name of the language in that language.
|
10
|
-
# @attr plural_code [String] A language code to be used to apply plural forms.
|
8
|
+
# @attr name [TD::Types::String] Language name.
|
9
|
+
# @attr native_name [TD::Types::String] Name of the language in that language.
|
10
|
+
# @attr plural_code [TD::Types::String] A language code to be used to apply plural forms.
|
11
11
|
# See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info.
|
12
12
|
# @attr is_official [Boolean] True, if the language pack is official.
|
13
13
|
# @attr is_rtl [Boolean] True, if the language pack strings are RTL.
|
@@ -16,7 +16,8 @@ module TD::Types
|
|
16
16
|
# @attr total_string_count [Integer] Total number of non-deleted strings from the language pack.
|
17
17
|
# @attr translated_string_count [Integer] Total number of translated strings from the language pack.
|
18
18
|
# @attr local_string_count [Integer] Total number of non-deleted strings from the language pack available locally.
|
19
|
-
# @attr translation_url [String, nil] Link to language translation interface; empty for custom local
|
19
|
+
# @attr translation_url [TD::Types::String, nil] Link to language translation interface; empty for custom local
|
20
|
+
# language packs.
|
20
21
|
class LanguagePackInfo < Base
|
21
22
|
attribute :id, TD::Types::String
|
22
23
|
attribute :base_language_pack_id, TD::Types::String.optional.default(nil)
|
@@ -27,9 +28,9 @@ module TD::Types
|
|
27
28
|
attribute :is_rtl, TD::Types::Bool
|
28
29
|
attribute :is_beta, TD::Types::Bool
|
29
30
|
attribute :is_installed, TD::Types::Bool
|
30
|
-
attribute :total_string_count, TD::Types::Integer
|
31
|
-
attribute :translated_string_count, TD::Types::Integer
|
32
|
-
attribute :local_string_count, TD::Types::Integer
|
31
|
+
attribute :total_string_count, TD::Types::Coercible::Integer
|
32
|
+
attribute :translated_string_count, TD::Types::Coercible::Integer
|
33
|
+
attribute :local_string_count, TD::Types::Coercible::Integer
|
33
34
|
attribute :translation_url, TD::Types::String.optional.default(nil)
|
34
35
|
end
|
35
36
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents one language pack string.
|
3
3
|
#
|
4
|
-
# @attr key [String] String key.
|
4
|
+
# @attr key [TD::Types::String] String key.
|
5
5
|
# @attr value [TD::Types::LanguagePackStringValue] String value.
|
6
6
|
class LanguagePackString < Base
|
7
7
|
attribute :key, TD::Types::String
|
@@ -2,12 +2,12 @@ module TD::Types
|
|
2
2
|
# A language pack string which has different forms based on the number of some object it mentions.
|
3
3
|
# See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info.
|
4
4
|
#
|
5
|
-
# @attr zero_value [String] Value for zero objects.
|
6
|
-
# @attr one_value [String] Value for one object.
|
7
|
-
# @attr two_value [String] Value for two objects.
|
8
|
-
# @attr few_value [String] Value for few objects.
|
9
|
-
# @attr many_value [String] Value for many objects.
|
10
|
-
# @attr other_value [String] Default value.
|
5
|
+
# @attr zero_value [TD::Types::String] Value for zero objects.
|
6
|
+
# @attr one_value [TD::Types::String] Value for one object.
|
7
|
+
# @attr two_value [TD::Types::String] Value for two objects.
|
8
|
+
# @attr few_value [TD::Types::String] Value for few objects.
|
9
|
+
# @attr many_value [TD::Types::String] Value for many objects.
|
10
|
+
# @attr other_value [TD::Types::String] Default value.
|
11
11
|
class LanguagePackStringValue::Pluralized < LanguagePackStringValue
|
12
12
|
attribute :zero_value, TD::Types::String
|
13
13
|
attribute :one_value, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a local file.
|
3
3
|
#
|
4
|
-
# @attr path [String, nil] Local path to the locally available file part; may be empty.
|
4
|
+
# @attr path [TD::Types::String, nil] Local path to the locally available file part; may be empty.
|
5
5
|
# @attr can_be_downloaded [Boolean] True, if it is possible to try to download or generate the file.
|
6
6
|
# @attr can_be_deleted [Boolean] True, if the file can be deleted.
|
7
7
|
# @attr is_downloading_active [Boolean] True, if the file is currently being downloaded (or a local copy is being
|
@@ -21,8 +21,8 @@ module TD::Types
|
|
21
21
|
attribute :can_be_deleted, TD::Types::Bool
|
22
22
|
attribute :is_downloading_active, TD::Types::Bool
|
23
23
|
attribute :is_downloading_completed, TD::Types::Bool
|
24
|
-
attribute :download_offset, TD::Types::Integer
|
25
|
-
attribute :downloaded_prefix_size, TD::Types::Integer
|
26
|
-
attribute :downloaded_size, TD::Types::Integer
|
24
|
+
attribute :download_offset, TD::Types::Coercible::Integer
|
25
|
+
attribute :downloaded_prefix_size, TD::Types::Coercible::Integer
|
26
|
+
attribute :downloaded_size, TD::Types::Coercible::Integer
|
27
27
|
end
|
28
28
|
end
|
data/lib/tdlib/types/location.rb
CHANGED
@@ -7,8 +7,8 @@ module TD::Types
|
|
7
7
|
# sender.
|
8
8
|
# 0 if unknown.
|
9
9
|
class Location < Base
|
10
|
-
attribute :latitude, TD::Types::Float
|
11
|
-
attribute :longitude, TD::Types::Float
|
12
|
-
attribute :horizontal_accuracy, TD::Types::Float
|
10
|
+
attribute :latitude, TD::Types::Coercible::Float
|
11
|
+
attribute :longitude, TD::Types::Coercible::Float
|
12
|
+
attribute :horizontal_accuracy, TD::Types::Coercible::Float
|
13
13
|
end
|
14
14
|
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# The log is written to a file.
|
3
3
|
#
|
4
|
-
# @attr path [String] Path to the file to where the internal TDLib log will be written.
|
4
|
+
# @attr path [TD::Types::String] Path to the file to where the internal TDLib log will be written.
|
5
5
|
# @attr max_file_size [Integer] The maximum size of the file to where the internal TDLib log is written before the
|
6
6
|
# file will be auto-rotated.
|
7
7
|
# @attr redirect_stderr [Boolean] Pass true to additionally redirect stderr to the log file.
|
8
8
|
# Ignored on Windows.
|
9
9
|
class LogStream::File < LogStream
|
10
10
|
attribute :path, TD::Types::String
|
11
|
-
attribute :max_file_size, TD::Types::Integer
|
11
|
+
attribute :max_file_size, TD::Types::Coercible::Integer
|
12
12
|
attribute :redirect_stderr, TD::Types::Bool
|
13
13
|
end
|
14
14
|
end
|
data/lib/tdlib/types/log_tags.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains a list of available TDLib internal log tags.
|
3
3
|
#
|
4
|
-
# @attr tags [Array<String>] List of log tags.
|
4
|
+
# @attr tags [Array<TD::Types::String>] List of log tags.
|
5
5
|
class LogTags < Base
|
6
6
|
attribute :tags, TD::Types::Array.of(TD::Types::String)
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# An HTTP url needs to be open.
|
3
3
|
#
|
4
|
-
# @attr url [String] The URL to open.
|
4
|
+
# @attr url [TD::Types::String] The URL to open.
|
5
5
|
# @attr skip_confirm [Boolean] True, if there is no need to show an ordinary open URL confirm.
|
6
6
|
class LoginUrlInfo::Open < LoginUrlInfo
|
7
7
|
attribute :url, TD::Types::String
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# An authorization confirmation dialog needs to be shown to the user.
|
3
3
|
#
|
4
|
-
# @attr url [String] An HTTP URL to be opened.
|
5
|
-
# @attr domain [String] A domain of the URL.
|
4
|
+
# @attr url [TD::Types::String] An HTTP URL to be opened.
|
5
|
+
# @attr domain [TD::Types::String] A domain of the URL.
|
6
6
|
# @attr bot_user_id [Integer] User identifier of a bot linked with the website.
|
7
7
|
# @attr request_write_access [Boolean] True, if the user needs to be requested to give the permission to the bot to
|
8
8
|
# send them messages.
|
9
9
|
class LoginUrlInfo::RequestConfirmation < LoginUrlInfo
|
10
10
|
attribute :url, TD::Types::String
|
11
11
|
attribute :domain, TD::Types::String
|
12
|
-
attribute :bot_user_id, TD::Types::Integer
|
12
|
+
attribute :bot_user_id, TD::Types::Coercible::Integer
|
13
13
|
attribute :request_write_access, TD::Types::Bool
|
14
14
|
end
|
15
15
|
end
|
@@ -10,8 +10,8 @@ module TD::Types
|
|
10
10
|
# (For example, 2.0 means a doubled size).
|
11
11
|
class MaskPosition < Base
|
12
12
|
attribute :point, TD::Types::MaskPoint
|
13
|
-
attribute :x_shift, TD::Types::Float
|
14
|
-
attribute :y_shift, TD::Types::Float
|
15
|
-
attribute :scale, TD::Types::Float
|
13
|
+
attribute :x_shift, TD::Types::Coercible::Float
|
14
|
+
attribute :y_shift, TD::Types::Coercible::Float
|
15
|
+
attribute :scale, TD::Types::Coercible::Float
|
16
16
|
end
|
17
17
|
end
|
data/lib/tdlib/types/message.rb
CHANGED
@@ -37,17 +37,18 @@ module TD::Types
|
|
37
37
|
# TDLib will send {TD::Types::Update::DeleteMessages} or {TD::Types::Update::MessageContent} once the TTL expires.
|
38
38
|
# @attr ttl_expires_in [Float] Time left before the message expires, in seconds.
|
39
39
|
# @attr via_bot_user_id [Integer] If non-zero, the user identifier of the bot through which this message was sent.
|
40
|
-
# @attr author_signature [String, nil] For channel posts and anonymous group messages, optional author
|
40
|
+
# @attr author_signature [TD::Types::String, nil] For channel posts and anonymous group messages, optional author
|
41
|
+
# signature.
|
41
42
|
# @attr media_album_id [Integer] Unique identifier of an album this message belongs to.
|
42
43
|
# Only audios, documents, photos and videos can be grouped together in albums.
|
43
|
-
# @attr restriction_reason [String] If non-empty, contains a human-readable description of the reason why
|
44
|
-
# this message must be restricted.
|
44
|
+
# @attr restriction_reason [TD::Types::String] If non-empty, contains a human-readable description of the reason why
|
45
|
+
# access to this message must be restricted.
|
45
46
|
# @attr content [TD::Types::MessageContent] Content of the message.
|
46
47
|
# @attr reply_markup [TD::Types::ReplyMarkup, nil] Reply markup for the message; may be null.
|
47
48
|
class Message < Base
|
48
|
-
attribute :id, TD::Types::Integer
|
49
|
+
attribute :id, TD::Types::Coercible::Integer
|
49
50
|
attribute :sender, TD::Types::MessageSender
|
50
|
-
attribute :chat_id, TD::Types::Integer
|
51
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
51
52
|
attribute :sending_state, TD::Types::MessageSendingState.optional.default(nil)
|
52
53
|
attribute :scheduling_state, TD::Types::MessageSchedulingState.optional.default(nil)
|
53
54
|
attribute :is_outgoing, TD::Types::Bool
|
@@ -60,18 +61,18 @@ module TD::Types
|
|
60
61
|
attribute :can_get_message_thread, TD::Types::Bool
|
61
62
|
attribute :is_channel_post, TD::Types::Bool
|
62
63
|
attribute :contains_unread_mention, TD::Types::Bool
|
63
|
-
attribute :date, TD::Types::Integer
|
64
|
-
attribute :edit_date, TD::Types::Integer
|
64
|
+
attribute :date, TD::Types::Coercible::Integer
|
65
|
+
attribute :edit_date, TD::Types::Coercible::Integer
|
65
66
|
attribute :forward_info, TD::Types::MessageForwardInfo.optional.default(nil)
|
66
67
|
attribute :interaction_info, TD::Types::MessageInteractionInfo.optional.default(nil)
|
67
|
-
attribute :reply_in_chat_id, TD::Types::Integer
|
68
|
-
attribute :reply_to_message_id, TD::Types::Integer
|
69
|
-
attribute :message_thread_id, TD::Types::Integer
|
70
|
-
attribute :ttl, TD::Types::Integer
|
71
|
-
attribute :ttl_expires_in, TD::Types::Float
|
72
|
-
attribute :via_bot_user_id, TD::Types::Integer
|
68
|
+
attribute :reply_in_chat_id, TD::Types::Coercible::Integer
|
69
|
+
attribute :reply_to_message_id, TD::Types::Coercible::Integer
|
70
|
+
attribute :message_thread_id, TD::Types::Coercible::Integer
|
71
|
+
attribute :ttl, TD::Types::Coercible::Integer
|
72
|
+
attribute :ttl_expires_in, TD::Types::Coercible::Float
|
73
|
+
attribute :via_bot_user_id, TD::Types::Coercible::Integer
|
73
74
|
attribute :author_signature, TD::Types::String.optional.default(nil)
|
74
|
-
attribute :media_album_id, TD::Types::Integer
|
75
|
+
attribute :media_album_id, TD::Types::Coercible::Integer
|
75
76
|
attribute :restriction_reason, TD::Types::String
|
76
77
|
attribute :content, TD::Types::MessageContent
|
77
78
|
attribute :reply_markup, TD::Types::ReplyMarkup.optional.default(nil)
|