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
@@ -13,8 +13,8 @@ module TD::Types
|
|
13
13
|
# Can be null even for a bot if the bot is not the chat member.
|
14
14
|
class ChatMember < Base
|
15
15
|
attribute :member_id, TD::Types::MessageSender
|
16
|
-
attribute :inviter_user_id, TD::Types::Integer
|
17
|
-
attribute :joined_chat_date, TD::Types::Integer
|
16
|
+
attribute :inviter_user_id, TD::Types::Coercible::Integer
|
17
|
+
attribute :joined_chat_date, TD::Types::Coercible::Integer
|
18
18
|
attribute :status, TD::Types::ChatMemberStatus
|
19
19
|
attribute :bot_info, TD::Types::BotInfo.optional.default(nil)
|
20
20
|
end
|
@@ -4,8 +4,8 @@ module TD::Types
|
|
4
4
|
# members, and manage voice chats.
|
5
5
|
# In supergroups and channels, there are more detailed options for administrator privileges.
|
6
6
|
#
|
7
|
-
# @attr custom_title [String] A custom title of the administrator; 0-16 characters without emojis;
|
8
|
-
# supergroups only.
|
7
|
+
# @attr custom_title [TD::Types::String] A custom title of the administrator; 0-16 characters without emojis;
|
8
|
+
# applicable to supergroups only.
|
9
9
|
# @attr can_be_edited [Boolean] True, if the current user can edit the administrator privileges for the called user.
|
10
10
|
# @attr can_manage_chat [Boolean] True, if the administrator can get chat event log, get chat statistics, get message
|
11
11
|
# statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# The user is the owner of a chat and has all the administrator privileges.
|
3
3
|
#
|
4
|
-
# @attr custom_title [String] A custom title of the owner; 0-16 characters without emojis; applicable to
|
5
|
-
# only.
|
4
|
+
# @attr custom_title [TD::Types::String] A custom title of the owner; 0-16 characters without emojis; applicable to
|
5
|
+
# supergroups only.
|
6
6
|
# @attr is_anonymous [Boolean] True, if the creator isn't shown in the chat member list and sends messages
|
7
7
|
# anonymously; applicable to supergroups only.
|
8
8
|
# @attr is_member [Boolean] True, if the user is a member of the chat.
|
@@ -10,7 +10,7 @@ module TD::Types
|
|
10
10
|
# @attr permissions [TD::Types::ChatPermissions] User permissions in the chat.
|
11
11
|
class ChatMemberStatus::Restricted < ChatMemberStatus
|
12
12
|
attribute :is_member, TD::Types::Bool
|
13
|
-
attribute :restricted_until_date, TD::Types::Integer
|
13
|
+
attribute :restricted_until_date, TD::Types::Coercible::Integer
|
14
14
|
attribute :permissions, TD::Types::ChatPermissions
|
15
15
|
end
|
16
16
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr total_count [Integer] Approximate total count of chat members found.
|
5
5
|
# @attr members [Array<TD::Types::ChatMember>] A list of chat members.
|
6
6
|
class ChatMembers < Base
|
7
|
-
attribute :total_count, TD::Types::Integer
|
7
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
8
8
|
attribute :members, TD::Types::Array.of(TD::Types::ChatMember)
|
9
9
|
end
|
10
10
|
end
|
@@ -3,6 +3,6 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr message_thread_id [Integer] If non-zero, the identifier of the current message thread.
|
5
5
|
class ChatMembersFilter::Mention < ChatMembersFilter
|
6
|
-
attribute :message_thread_id, TD::Types::Integer
|
6
|
+
attribute :message_thread_id, TD::Types::Coercible::Integer
|
7
7
|
end
|
8
8
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr chat_id [Integer] Chat identifier.
|
5
5
|
# @attr distance [Integer] Distance to the chat location, in meters.
|
6
6
|
class ChatNearby < Base
|
7
|
-
attribute :chat_id, TD::Types::Integer
|
8
|
-
attribute :distance, TD::Types::Integer
|
7
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
8
|
+
attribute :distance, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -6,7 +6,7 @@ module TD::Types
|
|
6
6
|
# @attr mute_for [Integer] Time left before notifications will be unmuted, in seconds.
|
7
7
|
# @attr use_default_sound [Boolean] If true, sound is ignored and the value for the relevant type of chat is used
|
8
8
|
# instead.
|
9
|
-
# @attr sound [String] The name of an audio file to be used for notification sounds; only applies to iOS
|
9
|
+
# @attr sound [TD::Types::String] The name of an audio file to be used for notification sounds; only applies to iOS
|
10
10
|
# applications.
|
11
11
|
# @attr use_default_show_preview [Boolean] If true, show_preview is ignored and the value for the relevant type of
|
12
12
|
# chat is used instead.
|
@@ -21,7 +21,7 @@ module TD::Types
|
|
21
21
|
# for an ordinary unread message.
|
22
22
|
class ChatNotificationSettings < Base
|
23
23
|
attribute :use_default_mute_for, TD::Types::Bool
|
24
|
-
attribute :mute_for, TD::Types::Integer
|
24
|
+
attribute :mute_for, TD::Types::Coercible::Integer
|
25
25
|
attribute :use_default_sound, TD::Types::Bool
|
26
26
|
attribute :sound, TD::Types::String
|
27
27
|
attribute :use_default_show_preview, TD::Types::Bool
|
@@ -7,8 +7,8 @@ module TD::Types
|
|
7
7
|
# @attr sizes [Array<TD::Types::PhotoSize>] Available variants of the photo in JPEG format, in different size.
|
8
8
|
# @attr animation [TD::Types::AnimatedChatPhoto, nil] Animated variant of the photo in MPEG4 format; may be null.
|
9
9
|
class ChatPhoto < Base
|
10
|
-
attribute :id, TD::Types::Integer
|
11
|
-
attribute :added_date, TD::Types::Integer
|
10
|
+
attribute :id, TD::Types::Coercible::Integer
|
11
|
+
attribute :added_date, TD::Types::Coercible::Integer
|
12
12
|
attribute :minithumbnail, TD::Types::Minithumbnail.optional.default(nil)
|
13
13
|
attribute :sizes, TD::Types::Array.of(TD::Types::PhotoSize)
|
14
14
|
attribute :animation, TD::Types::AnimatedChatPhoto.optional.default(nil)
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr total_count [Integer] Total number of photos.
|
5
5
|
# @attr photos [Array<TD::Types::ChatPhoto>] List of photos.
|
6
6
|
class ChatPhotos < Base
|
7
|
-
attribute :total_count, TD::Types::Integer
|
7
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
8
8
|
attribute :photos, TD::Types::Array.of(TD::Types::ChatPhoto)
|
9
9
|
end
|
10
10
|
end
|
@@ -8,7 +8,7 @@ module TD::Types
|
|
8
8
|
# @attr source [TD::Types::ChatSource, nil] Source of the chat in the chat list; may be null.
|
9
9
|
class ChatPosition < Base
|
10
10
|
attribute :list, TD::Types::ChatList
|
11
|
-
attribute :order, TD::Types::Integer
|
11
|
+
attribute :order, TD::Types::Coercible::Integer
|
12
12
|
attribute :is_pinned, TD::Types::Bool
|
13
13
|
attribute :source, TD::Types::ChatSource.optional.default(nil)
|
14
14
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# The chat contains a public service announcement.
|
3
3
|
#
|
4
|
-
# @attr type [String] The type of the announcement.
|
5
|
-
# @attr text [String] The text of the announcement.
|
4
|
+
# @attr type [TD::Types::String] The type of the announcement.
|
5
|
+
# @attr text [TD::Types::String] The text of the announcement.
|
6
6
|
class ChatSource::PublicServiceAnnouncement < ChatSource
|
7
7
|
attribute :type, TD::Types::String
|
8
8
|
attribute :text, TD::Types::String
|
@@ -27,7 +27,7 @@ module TD::Types
|
|
27
27
|
attribute :member_count, TD::Types::StatisticalValue
|
28
28
|
attribute :mean_view_count, TD::Types::StatisticalValue
|
29
29
|
attribute :mean_share_count, TD::Types::StatisticalValue
|
30
|
-
attribute :enabled_notifications_percentage, TD::Types::Float
|
30
|
+
attribute :enabled_notifications_percentage, TD::Types::Coercible::Float
|
31
31
|
attribute :member_count_graph, TD::Types::StatisticalGraph
|
32
32
|
attribute :join_graph, TD::Types::StatisticalGraph
|
33
33
|
attribute :mute_graph, TD::Types::StatisticalGraph
|
@@ -6,9 +6,9 @@ module TD::Types
|
|
6
6
|
# @attr banned_user_count [Integer] Number of users banned by the administrator.
|
7
7
|
# @attr restricted_user_count [Integer] Number of users restricted by the administrator.
|
8
8
|
class ChatStatisticsAdministratorActionsInfo < Base
|
9
|
-
attribute :user_id, TD::Types::Integer
|
10
|
-
attribute :deleted_message_count, TD::Types::Integer
|
11
|
-
attribute :banned_user_count, TD::Types::Integer
|
12
|
-
attribute :restricted_user_count, TD::Types::Integer
|
9
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
10
|
+
attribute :deleted_message_count, TD::Types::Coercible::Integer
|
11
|
+
attribute :banned_user_count, TD::Types::Coercible::Integer
|
12
|
+
attribute :restricted_user_count, TD::Types::Coercible::Integer
|
13
13
|
end
|
14
14
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr user_id [Integer] User identifier.
|
5
5
|
# @attr added_member_count [Integer] Number of new members invited by the user.
|
6
6
|
class ChatStatisticsInviterInfo < Base
|
7
|
-
attribute :user_id, TD::Types::Integer
|
8
|
-
attribute :added_member_count, TD::Types::Integer
|
7
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
8
|
+
attribute :added_member_count, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr view_count [Integer] Number of times the message was viewed.
|
6
6
|
# @attr forward_count [Integer] Number of times the message was forwarded.
|
7
7
|
class ChatStatisticsMessageInteractionInfo < Base
|
8
|
-
attribute :message_id, TD::Types::Integer
|
9
|
-
attribute :view_count, TD::Types::Integer
|
10
|
-
attribute :forward_count, TD::Types::Integer
|
8
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
9
|
+
attribute :view_count, TD::Types::Coercible::Integer
|
10
|
+
attribute :forward_count, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr sent_message_count [Integer] Number of sent messages.
|
6
6
|
# @attr average_character_count [Integer] Average number of characters in sent messages.
|
7
7
|
class ChatStatisticsMessageSenderInfo < Base
|
8
|
-
attribute :user_id, TD::Types::Integer
|
9
|
-
attribute :sent_message_count, TD::Types::Integer
|
10
|
-
attribute :average_character_count, TD::Types::Integer
|
8
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
9
|
+
attribute :sent_message_count, TD::Types::Coercible::Integer
|
10
|
+
attribute :average_character_count, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr secret_chat_id [Integer] Secret chat identifier.
|
5
5
|
# @attr user_id [Integer] User identifier of the secret chat peer.
|
6
6
|
class ChatType::Secret < ChatType
|
7
|
-
attribute :secret_chat_id, TD::Types::Integer
|
8
|
-
attribute :user_id, TD::Types::Integer
|
7
|
+
attribute :secret_chat_id, TD::Types::Coercible::Integer
|
8
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -5,7 +5,7 @@ module TD::Types
|
|
5
5
|
# @attr supergroup_id [Integer] Supergroup or channel identifier.
|
6
6
|
# @attr is_channel [Boolean] True, if the supergroup is a channel.
|
7
7
|
class ChatType::Supergroup < ChatType
|
8
|
-
attribute :supergroup_id, TD::Types::Integer
|
8
|
+
attribute :supergroup_id, TD::Types::Coercible::Integer
|
9
9
|
attribute :is_channel, TD::Types::Bool
|
10
10
|
end
|
11
11
|
end
|
data/lib/tdlib/types/chats.rb
CHANGED
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr total_count [Integer] Approximate total count of chats found.
|
5
5
|
# @attr chat_ids [Array<Integer>] List of chat identifiers.
|
6
6
|
class Chats < Base
|
7
|
-
attribute :total_count, TD::Types::Integer
|
8
|
-
attribute :chat_ids, TD::Types::Array.of(TD::Types::Integer)
|
7
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
8
|
+
attribute :chat_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
9
9
|
end
|
10
10
|
end
|
@@ -2,23 +2,23 @@ module TD::Types
|
|
2
2
|
# Contains information about one website the current user is logged in with Telegram.
|
3
3
|
#
|
4
4
|
# @attr id [Integer] Website identifier.
|
5
|
-
# @attr domain_name [String] The domain name of the website.
|
5
|
+
# @attr domain_name [TD::Types::String] The domain name of the website.
|
6
6
|
# @attr bot_user_id [Integer] User identifier of a bot linked with the website.
|
7
|
-
# @attr browser [String] The version of a browser used to log in.
|
8
|
-
# @attr platform [String] Operating system the browser is running on.
|
7
|
+
# @attr browser [TD::Types::String] The version of a browser used to log in.
|
8
|
+
# @attr platform [TD::Types::String] Operating system the browser is running on.
|
9
9
|
# @attr log_in_date [Integer] Point in time (Unix timestamp) when the user was logged in.
|
10
10
|
# @attr last_active_date [Integer] Point in time (Unix timestamp) when obtained authorization was last used.
|
11
|
-
# @attr ip [String] IP address from which the user was logged in, in human-readable format.
|
12
|
-
# @attr location [String] Human-readable description of a country and a region, from which the user was
|
13
|
-
# based on the IP address.
|
11
|
+
# @attr ip [TD::Types::String] IP address from which the user was logged in, in human-readable format.
|
12
|
+
# @attr location [TD::Types::String] Human-readable description of a country and a region, from which the user was
|
13
|
+
# logged in, based on the IP address.
|
14
14
|
class ConnectedWebsite < Base
|
15
|
-
attribute :id, TD::Types::Integer
|
15
|
+
attribute :id, TD::Types::Coercible::Integer
|
16
16
|
attribute :domain_name, TD::Types::String
|
17
|
-
attribute :bot_user_id, TD::Types::Integer
|
17
|
+
attribute :bot_user_id, TD::Types::Coercible::Integer
|
18
18
|
attribute :browser, TD::Types::String
|
19
19
|
attribute :platform, TD::Types::String
|
20
|
-
attribute :log_in_date, TD::Types::Integer
|
21
|
-
attribute :last_active_date, TD::Types::Integer
|
20
|
+
attribute :log_in_date, TD::Types::Coercible::Integer
|
21
|
+
attribute :last_active_date, TD::Types::Coercible::Integer
|
22
22
|
attribute :ip, TD::Types::String
|
23
23
|
attribute :location, TD::Types::String
|
24
24
|
end
|
data/lib/tdlib/types/contact.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Describes a user contact.
|
3
3
|
#
|
4
|
-
# @attr phone_number [String] Phone number of the user.
|
5
|
-
# @attr first_name [String] First name of the user; 1-255 characters in length.
|
6
|
-
# @attr last_name [String] Last name of the user.
|
7
|
-
# @attr vcard [String] Additional data about the user in a form of vCard; 0-2048 bytes in length.
|
4
|
+
# @attr phone_number [TD::Types::String] Phone number of the user.
|
5
|
+
# @attr first_name [TD::Types::String] First name of the user; 1-255 characters in length.
|
6
|
+
# @attr last_name [TD::Types::String] Last name of the user.
|
7
|
+
# @attr vcard [TD::Types::String] Additional data about the user in a form of vCard; 0-2048 bytes in length.
|
8
8
|
# @attr user_id [Integer] Identifier of the user, if known; otherwise 0.
|
9
9
|
class Contact < Base
|
10
10
|
attribute :phone_number, TD::Types::String
|
11
11
|
attribute :first_name, TD::Types::String
|
12
12
|
attribute :last_name, TD::Types::String
|
13
13
|
attribute :vcard, TD::Types::String
|
14
|
-
attribute :user_id, TD::Types::Integer
|
14
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
15
15
|
end
|
16
16
|
end
|
data/lib/tdlib/types/count.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains information about a country.
|
3
3
|
#
|
4
|
-
# @attr country_code [String] A two-letter ISO 3166-1 alpha-2 country code.
|
5
|
-
# @attr name [String] Native name of the country.
|
6
|
-
# @attr english_name [String] English name of the country.
|
4
|
+
# @attr country_code [TD::Types::String] A two-letter ISO 3166-1 alpha-2 country code.
|
5
|
+
# @attr name [TD::Types::String] Native name of the country.
|
6
|
+
# @attr english_name [TD::Types::String] English name of the country.
|
7
7
|
# @attr is_hidden [Boolean] True, if the country should be hidden from the list of all countries.
|
8
|
-
# @attr calling_codes [Array<String>] List of country calling codes.
|
8
|
+
# @attr calling_codes [Array<TD::Types::String>] List of country calling codes.
|
9
9
|
class CountryInfo < Base
|
10
10
|
attribute :country_code, TD::Types::String
|
11
11
|
attribute :name, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains database statistics.
|
3
3
|
#
|
4
|
-
# @attr statistics [String] Database statistics in an unspecified human-readable format.
|
4
|
+
# @attr statistics [TD::Types::String] Database statistics in an unspecified human-readable format.
|
5
5
|
class DatabaseStatistics < Base
|
6
6
|
attribute :statistics, TD::Types::String
|
7
7
|
end
|
data/lib/tdlib/types/date.rb
CHANGED
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr month [Integer] Month; 1-12.
|
6
6
|
# @attr year [Integer] Year; 1-9999.
|
7
7
|
class Date < Base
|
8
|
-
attribute :day, TD::Types::Integer
|
9
|
-
attribute :month, TD::Types::Integer
|
10
|
-
attribute :year, TD::Types::Integer
|
8
|
+
attribute :day, TD::Types::Coercible::Integer
|
9
|
+
attribute :month, TD::Types::Coercible::Integer
|
10
|
+
attribute :year, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr start_date [Integer] Point in time (Unix timestamp) at which the date range begins.
|
5
5
|
# @attr end_date [Integer] Point in time (Unix timestamp) at which the date range ends.
|
6
6
|
class DateRange < Base
|
7
|
-
attribute :start_date, TD::Types::Integer
|
8
|
-
attribute :end_date, TD::Types::Integer
|
7
|
+
attribute :start_date, TD::Types::Coercible::Integer
|
8
|
+
attribute :end_date, TD::Types::Coercible::Integer
|
9
9
|
end
|
10
10
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A token for Apple Push Notification service.
|
3
3
|
#
|
4
|
-
# @attr device_token [String, nil] Device token; may be empty to de-register a device.
|
4
|
+
# @attr device_token [TD::Types::String, nil] Device token; may be empty to de-register a device.
|
5
5
|
# @attr is_app_sandbox [Boolean] True, if App Sandbox is enabled.
|
6
6
|
class DeviceToken::ApplePush < DeviceToken
|
7
7
|
attribute :device_token, TD::Types::String.optional.default(nil)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A token for Apple Push Notification service VoIP notifications.
|
3
3
|
#
|
4
|
-
# @attr device_token [String, nil] Device token; may be empty to de-register a device.
|
4
|
+
# @attr device_token [TD::Types::String, nil] Device token; may be empty to de-register a device.
|
5
5
|
# @attr is_app_sandbox [Boolean] True, if App Sandbox is enabled.
|
6
6
|
# @attr encrypt [Boolean] True, if push notifications should be additionally encrypted.
|
7
7
|
class DeviceToken::ApplePushVoIP < DeviceToken
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A token for BlackBerry Push Service.
|
3
3
|
#
|
4
|
-
# @attr token [String, nil] Token; may be empty to de-register a device.
|
4
|
+
# @attr token [TD::Types::String, nil] Token; may be empty to de-register a device.
|
5
5
|
class DeviceToken::BlackBerryPush < DeviceToken
|
6
6
|
attribute :token, TD::Types::String.optional.default(nil)
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A token for Firebase Cloud Messaging.
|
3
3
|
#
|
4
|
-
# @attr token [String, nil] Device registration token; may be empty to de-register a device.
|
4
|
+
# @attr token [TD::Types::String, nil] Device registration token; may be empty to de-register a device.
|
5
5
|
# @attr encrypt [Boolean] True, if push notifications should be additionally encrypted.
|
6
6
|
class DeviceToken::FirebaseCloudMessaging < DeviceToken
|
7
7
|
attribute :token, TD::Types::String.optional.default(nil)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A token for Microsoft Push Notification Service.
|
3
3
|
#
|
4
|
-
# @attr channel_uri [String, nil] Push notification channel URI; may be empty to de-register a device.
|
4
|
+
# @attr channel_uri [TD::Types::String, nil] Push notification channel URI; may be empty to de-register a device.
|
5
5
|
class DeviceToken::MicrosoftPush < DeviceToken
|
6
6
|
attribute :channel_uri, TD::Types::String.optional.default(nil)
|
7
7
|
end
|