tdlib-schema 1.7.0.1 → 1.7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/parser +6 -6
- data/lib/tdlib/client_methods.rb +171 -168
- data/lib/tdlib/types/account_ttl.rb +1 -1
- data/lib/tdlib/types/address.rb +6 -6
- data/lib/tdlib/types/animated_chat_photo.rb +2 -2
- data/lib/tdlib/types/animation.rb +5 -5
- data/lib/tdlib/types/audio.rb +5 -5
- data/lib/tdlib/types/authentication_code_info.rb +2 -2
- data/lib/tdlib/types/authentication_code_type/call.rb +1 -1
- data/lib/tdlib/types/authentication_code_type/flash_call.rb +1 -1
- data/lib/tdlib/types/authentication_code_type/sms.rb +1 -1
- data/lib/tdlib/types/authentication_code_type/telegram_message.rb +1 -1
- data/lib/tdlib/types/authorization_state/wait_other_device_confirmation.rb +1 -1
- data/lib/tdlib/types/authorization_state/wait_password.rb +3 -3
- data/lib/tdlib/types/auto_download_settings.rb +4 -4
- data/lib/tdlib/types/background.rb +2 -2
- data/lib/tdlib/types/background_fill/gradient.rb +3 -3
- data/lib/tdlib/types/background_fill/solid.rb +1 -1
- data/lib/tdlib/types/background_type/pattern.rb +1 -1
- data/lib/tdlib/types/bank_card_action_open_url.rb +2 -2
- data/lib/tdlib/types/bank_card_info.rb +1 -1
- data/lib/tdlib/types/basic_group.rb +3 -3
- data/lib/tdlib/types/basic_group_full_info.rb +2 -2
- data/lib/tdlib/types/bot_command.rb +2 -2
- data/lib/tdlib/types/bot_info.rb +1 -1
- data/lib/tdlib/types/call.rb +2 -2
- data/lib/tdlib/types/call_id.rb +1 -1
- data/lib/tdlib/types/call_protocol.rb +3 -3
- data/lib/tdlib/types/call_server.rb +4 -4
- data/lib/tdlib/types/call_server_type/telegram_reflector.rb +1 -1
- data/lib/tdlib/types/call_server_type/webrtc.rb +2 -2
- data/lib/tdlib/types/call_state/ready.rb +3 -3
- data/lib/tdlib/types/callback_query_answer.rb +2 -2
- data/lib/tdlib/types/callback_query_payload/data.rb +1 -1
- data/lib/tdlib/types/callback_query_payload/data_with_password.rb +2 -2
- data/lib/tdlib/types/callback_query_payload/game.rb +1 -1
- data/lib/tdlib/types/can_transfer_ownership_result/password_too_fresh.rb +1 -1
- data/lib/tdlib/types/can_transfer_ownership_result/session_too_fresh.rb +1 -1
- data/lib/tdlib/types/chat.rb +9 -9
- data/lib/tdlib/types/chat_action/uploading_document.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_photo.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_video.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_video_note.rb +1 -1
- data/lib/tdlib/types/chat_action/uploading_voice_note.rb +1 -1
- data/lib/tdlib/types/chat_action_bar/report_add_block.rb +1 -1
- data/lib/tdlib/types/chat_administrator.rb +2 -2
- data/lib/tdlib/types/chat_event.rb +3 -3
- data/lib/tdlib/types/chat_event_action/description_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/linked_chat_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/member_invited.rb +1 -1
- data/lib/tdlib/types/chat_event_action/member_promoted.rb +1 -1
- data/lib/tdlib/types/chat_event_action/message_ttl_setting_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/slow_mode_delay_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/sticker_set_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/title_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/username_changed.rb +2 -2
- data/lib/tdlib/types/chat_event_action/voice_chat_created.rb +1 -1
- data/lib/tdlib/types/chat_event_action/voice_chat_discarded.rb +1 -1
- data/lib/tdlib/types/chat_event_action/voice_chat_participant_volume_level_changed.rb +1 -1
- data/lib/tdlib/types/chat_filter.rb +5 -5
- data/lib/tdlib/types/chat_filter_info.rb +3 -3
- data/lib/tdlib/types/chat_invite_link.rb +7 -7
- data/lib/tdlib/types/chat_invite_link_count.rb +3 -3
- data/lib/tdlib/types/chat_invite_link_info.rb +5 -5
- data/lib/tdlib/types/chat_invite_link_member.rb +2 -2
- data/lib/tdlib/types/chat_invite_link_members.rb +1 -1
- data/lib/tdlib/types/chat_invite_links.rb +1 -1
- data/lib/tdlib/types/chat_list/filter.rb +1 -1
- data/lib/tdlib/types/chat_location.rb +1 -1
- data/lib/tdlib/types/chat_member.rb +2 -2
- data/lib/tdlib/types/chat_member_status/administrator.rb +2 -2
- data/lib/tdlib/types/chat_member_status/banned.rb +1 -1
- data/lib/tdlib/types/chat_member_status/creator.rb +2 -2
- data/lib/tdlib/types/chat_member_status/restricted.rb +1 -1
- data/lib/tdlib/types/chat_members.rb +1 -1
- data/lib/tdlib/types/chat_members_filter/mention.rb +1 -1
- data/lib/tdlib/types/chat_nearby.rb +2 -2
- data/lib/tdlib/types/chat_notification_settings.rb +2 -2
- data/lib/tdlib/types/chat_photo.rb +2 -2
- data/lib/tdlib/types/chat_photos.rb +1 -1
- data/lib/tdlib/types/chat_position.rb +1 -1
- data/lib/tdlib/types/chat_source/public_service_announcement.rb +2 -2
- data/lib/tdlib/types/chat_statistics/channel.rb +1 -1
- data/lib/tdlib/types/chat_statistics_administrator_actions_info.rb +4 -4
- data/lib/tdlib/types/chat_statistics_inviter_info.rb +2 -2
- data/lib/tdlib/types/chat_statistics_message_interaction_info.rb +3 -3
- data/lib/tdlib/types/chat_statistics_message_sender_info.rb +3 -3
- data/lib/tdlib/types/chat_type/basic_group.rb +1 -1
- data/lib/tdlib/types/chat_type/private.rb +1 -1
- data/lib/tdlib/types/chat_type/secret.rb +2 -2
- data/lib/tdlib/types/chat_type/supergroup.rb +1 -1
- data/lib/tdlib/types/chats.rb +2 -2
- data/lib/tdlib/types/connected_website.rb +10 -10
- data/lib/tdlib/types/contact.rb +5 -5
- data/lib/tdlib/types/count.rb +1 -1
- data/lib/tdlib/types/country_info.rb +4 -4
- data/lib/tdlib/types/custom_request_result.rb +1 -1
- data/lib/tdlib/types/database_statistics.rb +1 -1
- data/lib/tdlib/types/date.rb +3 -3
- data/lib/tdlib/types/date_range.rb +2 -2
- data/lib/tdlib/types/dated_file.rb +1 -1
- data/lib/tdlib/types/device_token/apple_push.rb +1 -1
- data/lib/tdlib/types/device_token/apple_push_vo_ip.rb +1 -1
- data/lib/tdlib/types/device_token/black_berry_push.rb +1 -1
- data/lib/tdlib/types/device_token/firebase_cloud_messaging.rb +1 -1
- data/lib/tdlib/types/device_token/microsoft_push.rb +1 -1
- data/lib/tdlib/types/device_token/microsoft_push_vo_ip.rb +1 -1
- data/lib/tdlib/types/device_token/simple_push.rb +2 -2
- data/lib/tdlib/types/device_token/tizen_push.rb +1 -1
- data/lib/tdlib/types/device_token/ubuntu_push.rb +1 -1
- data/lib/tdlib/types/device_token/web_push.rb +4 -4
- data/lib/tdlib/types/device_token/windows_push.rb +2 -2
- data/lib/tdlib/types/document.rb +2 -2
- data/lib/tdlib/types/draft_message.rb +2 -2
- data/lib/tdlib/types/email_address_authentication_code_info.rb +3 -2
- data/lib/tdlib/types/emojis.rb +1 -1
- data/lib/tdlib/types/encrypted_credentials.rb +3 -3
- data/lib/tdlib/types/encrypted_passport_element.rb +3 -3
- data/lib/tdlib/types/error.rb +2 -2
- data/lib/tdlib/types/file.rb +3 -3
- data/lib/tdlib/types/file_part.rb +1 -1
- data/lib/tdlib/types/formatted_text.rb +1 -1
- data/lib/tdlib/types/found_messages.rb +2 -2
- data/lib/tdlib/types/game.rb +4 -4
- data/lib/tdlib/types/game_high_score.rb +3 -3
- data/lib/tdlib/types/group_call.rb +6 -6
- data/lib/tdlib/types/group_call_id.rb +1 -1
- data/lib/tdlib/types/group_call_join_response_candidate.rb +13 -13
- data/lib/tdlib/types/group_call_participant.rb +4 -4
- data/lib/tdlib/types/group_call_payload.rb +2 -2
- data/lib/tdlib/types/group_call_payload_fingerprint.rb +3 -3
- data/lib/tdlib/types/hashtags.rb +1 -1
- data/lib/tdlib/types/http_url.rb +1 -1
- data/lib/tdlib/types/identity_document.rb +1 -1
- data/lib/tdlib/types/imported_contacts.rb +2 -2
- data/lib/tdlib/types/inline_keyboard_button.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/callback.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/callback_with_password.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/login_url.rb +3 -3
- data/lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb +1 -1
- data/lib/tdlib/types/inline_keyboard_button_type/url.rb +1 -1
- data/lib/tdlib/types/inline_query_result/animation.rb +2 -2
- data/lib/tdlib/types/inline_query_result/article.rb +4 -4
- data/lib/tdlib/types/inline_query_result/audio.rb +1 -1
- data/lib/tdlib/types/inline_query_result/contact.rb +1 -1
- data/lib/tdlib/types/inline_query_result/document.rb +3 -3
- data/lib/tdlib/types/inline_query_result/game.rb +1 -1
- data/lib/tdlib/types/inline_query_result/location.rb +2 -2
- data/lib/tdlib/types/inline_query_result/photo.rb +3 -3
- data/lib/tdlib/types/inline_query_result/sticker.rb +1 -1
- data/lib/tdlib/types/inline_query_result/venue.rb +1 -1
- data/lib/tdlib/types/inline_query_result/video.rb +3 -3
- data/lib/tdlib/types/inline_query_result/voice_note.rb +2 -2
- data/lib/tdlib/types/inline_query_results.rb +5 -5
- data/lib/tdlib/types/input_background/remote.rb +1 -1
- data/lib/tdlib/types/input_chat_photo/animation.rb +1 -1
- data/lib/tdlib/types/input_chat_photo/previous.rb +1 -1
- data/lib/tdlib/types/input_credentials/apple_pay.rb +1 -1
- data/lib/tdlib/types/input_credentials/google_pay.rb +1 -1
- data/lib/tdlib/types/input_credentials/new.rb +1 -1
- data/lib/tdlib/types/input_credentials/saved.rb +1 -1
- data/lib/tdlib/types/input_file/generated.rb +5 -5
- data/lib/tdlib/types/input_file/id.rb +1 -1
- data/lib/tdlib/types/input_file/local.rb +1 -1
- data/lib/tdlib/types/input_file/remote.rb +1 -1
- data/lib/tdlib/types/input_identity_document.rb +1 -1
- data/lib/tdlib/types/input_inline_query_result/animation.rb +9 -9
- data/lib/tdlib/types/input_inline_query_result/article.rb +7 -7
- data/lib/tdlib/types/input_inline_query_result/audio.rb +5 -5
- data/lib/tdlib/types/input_inline_query_result/contact.rb +4 -4
- data/lib/tdlib/types/input_inline_query_result/document.rb +9 -9
- data/lib/tdlib/types/input_inline_query_result/game.rb +2 -2
- data/lib/tdlib/types/input_inline_query_result/location.rb +6 -6
- data/lib/tdlib/types/input_inline_query_result/photo.rb +7 -7
- data/lib/tdlib/types/input_inline_query_result/sticker.rb +5 -5
- data/lib/tdlib/types/input_inline_query_result/venue.rb +4 -4
- data/lib/tdlib/types/input_inline_query_result/video.rb +10 -10
- data/lib/tdlib/types/input_inline_query_result/voice_note.rb +4 -4
- data/lib/tdlib/types/input_message_content/animation.rb +4 -4
- data/lib/tdlib/types/input_message_content/audio.rb +3 -3
- data/lib/tdlib/types/input_message_content/dice.rb +1 -1
- data/lib/tdlib/types/input_message_content/forwarded.rb +2 -2
- data/lib/tdlib/types/input_message_content/game.rb +2 -2
- data/lib/tdlib/types/input_message_content/invoice.rb +12 -10
- data/lib/tdlib/types/input_message_content/location.rb +3 -3
- data/lib/tdlib/types/input_message_content/photo.rb +4 -4
- data/lib/tdlib/types/input_message_content/poll.rb +4 -4
- data/lib/tdlib/types/input_message_content/sticker.rb +3 -3
- data/lib/tdlib/types/input_message_content/video.rb +5 -5
- data/lib/tdlib/types/input_message_content/video_note.rb +2 -2
- data/lib/tdlib/types/input_message_content/voice_note.rb +2 -2
- data/lib/tdlib/types/input_passport_element/email_address.rb +1 -1
- data/lib/tdlib/types/input_passport_element/phone_number.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/data_field.rb +2 -2
- data/lib/tdlib/types/input_passport_element_error_source/file.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/files.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/front_side.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/reverse_side.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/selfie.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/translation_file.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/translation_files.rb +1 -1
- data/lib/tdlib/types/input_passport_element_error_source/unspecified.rb +1 -1
- data/lib/tdlib/types/input_sticker/animated.rb +1 -1
- data/lib/tdlib/types/input_sticker/static.rb +1 -1
- data/lib/tdlib/types/input_thumbnail.rb +2 -2
- data/lib/tdlib/types/invoice.rb +3 -3
- data/lib/tdlib/types/json_object_member.rb +1 -1
- data/lib/tdlib/types/json_value/number.rb +1 -1
- data/lib/tdlib/types/json_value/string.rb +1 -1
- data/lib/tdlib/types/keyboard_button.rb +1 -1
- data/lib/tdlib/types/labeled_price_part.rb +2 -2
- data/lib/tdlib/types/language_pack_info.rb +10 -9
- data/lib/tdlib/types/language_pack_string.rb +1 -1
- data/lib/tdlib/types/language_pack_string_value/ordinary.rb +1 -1
- data/lib/tdlib/types/language_pack_string_value/pluralized.rb +6 -6
- data/lib/tdlib/types/local_file.rb +4 -4
- data/lib/tdlib/types/location.rb +3 -3
- data/lib/tdlib/types/log_stream/file.rb +2 -2
- data/lib/tdlib/types/log_tags.rb +1 -1
- data/lib/tdlib/types/log_verbosity_level.rb +1 -1
- data/lib/tdlib/types/login_url_info/open.rb +1 -1
- data/lib/tdlib/types/login_url_info/request_confirmation.rb +3 -3
- data/lib/tdlib/types/mask_position.rb +3 -3
- data/lib/tdlib/types/message.rb +15 -14
- data/lib/tdlib/types/message_content/basic_group_chat_create.rb +2 -2
- data/lib/tdlib/types/message_content/call.rb +1 -1
- data/lib/tdlib/types/message_content/chat_add_members.rb +1 -1
- data/lib/tdlib/types/message_content/chat_change_title.rb +1 -1
- data/lib/tdlib/types/message_content/chat_delete_member.rb +1 -1
- data/lib/tdlib/types/message_content/chat_set_ttl.rb +1 -1
- data/lib/tdlib/types/message_content/chat_upgrade_from.rb +2 -2
- data/lib/tdlib/types/message_content/chat_upgrade_to.rb +1 -1
- data/lib/tdlib/types/message_content/custom_service_action.rb +1 -1
- data/lib/tdlib/types/message_content/dice.rb +3 -3
- data/lib/tdlib/types/message_content/game_score.rb +3 -3
- data/lib/tdlib/types/message_content/invite_voice_chat_participants.rb +2 -2
- data/lib/tdlib/types/message_content/invoice.rb +6 -6
- data/lib/tdlib/types/message_content/location.rb +4 -4
- data/lib/tdlib/types/message_content/payment_successful.rb +4 -4
- data/lib/tdlib/types/message_content/payment_successful_bot.rb +7 -7
- data/lib/tdlib/types/message_content/pin_message.rb +1 -1
- data/lib/tdlib/types/message_content/proximity_alert_triggered.rb +1 -1
- data/lib/tdlib/types/message_content/supergroup_chat_create.rb +1 -1
- data/lib/tdlib/types/message_content/voice_chat_ended.rb +1 -1
- data/lib/tdlib/types/message_content/voice_chat_scheduled.rb +2 -2
- data/lib/tdlib/types/message_content/voice_chat_started.rb +1 -1
- data/lib/tdlib/types/message_content/website_connected.rb +1 -1
- data/lib/tdlib/types/message_file_type/group.rb +1 -1
- data/lib/tdlib/types/message_file_type/private.rb +1 -1
- data/lib/tdlib/types/message_forward_info.rb +5 -5
- data/lib/tdlib/types/message_forward_origin/channel.rb +3 -3
- data/lib/tdlib/types/message_forward_origin/chat.rb +2 -2
- data/lib/tdlib/types/message_forward_origin/hidden_user.rb +1 -1
- data/lib/tdlib/types/message_forward_origin/message_import.rb +1 -1
- data/lib/tdlib/types/message_forward_origin/user.rb +1 -1
- data/lib/tdlib/types/message_interaction_info.rb +2 -2
- data/lib/tdlib/types/message_link.rb +1 -1
- data/lib/tdlib/types/message_link_info.rb +1 -1
- data/lib/tdlib/types/message_reply_info.rb +4 -4
- data/lib/tdlib/types/message_scheduling_state/send_at_date.rb +1 -1
- data/lib/tdlib/types/message_sender/chat.rb +1 -1
- data/lib/tdlib/types/message_sender/user.rb +1 -1
- data/lib/tdlib/types/message_senders.rb +1 -1
- data/lib/tdlib/types/message_sending_state/failed.rb +3 -3
- data/lib/tdlib/types/message_thread_info.rb +2 -2
- data/lib/tdlib/types/messages.rb +1 -1
- data/lib/tdlib/types/minithumbnail.rb +3 -3
- data/lib/tdlib/types/network_statistics.rb +1 -1
- data/lib/tdlib/types/network_statistics_entry/call.rb +3 -3
- data/lib/tdlib/types/network_statistics_entry/file.rb +2 -2
- data/lib/tdlib/types/notification.rb +2 -2
- data/lib/tdlib/types/notification_group.rb +3 -3
- data/lib/tdlib/types/notification_type/new_call.rb +1 -1
- data/lib/tdlib/types/notification_type/new_push_message.rb +2 -2
- data/lib/tdlib/types/option_value/integer.rb +1 -1
- data/lib/tdlib/types/option_value/string.rb +1 -1
- data/lib/tdlib/types/order_info.rb +3 -3
- data/lib/tdlib/types/page_block/anchor.rb +1 -1
- data/lib/tdlib/types/page_block/author_date.rb +1 -1
- data/lib/tdlib/types/page_block/chat_link.rb +2 -2
- data/lib/tdlib/types/page_block/embedded.rb +4 -4
- data/lib/tdlib/types/page_block/embedded_post.rb +3 -3
- data/lib/tdlib/types/page_block/map.rb +3 -3
- data/lib/tdlib/types/page_block/photo.rb +1 -1
- data/lib/tdlib/types/page_block/preformatted.rb +1 -1
- data/lib/tdlib/types/page_block_list_item.rb +1 -1
- data/lib/tdlib/types/page_block_related_article.rb +5 -5
- data/lib/tdlib/types/page_block_table_cell.rb +2 -2
- data/lib/tdlib/types/passport_authorization_form.rb +2 -2
- data/lib/tdlib/types/passport_element/email_address.rb +1 -1
- data/lib/tdlib/types/passport_element/phone_number.rb +1 -1
- data/lib/tdlib/types/passport_element_error.rb +1 -1
- data/lib/tdlib/types/passport_element_error_source/data_field.rb +1 -1
- data/lib/tdlib/types/passport_element_error_source/file.rb +1 -1
- data/lib/tdlib/types/passport_element_error_source/translation_file.rb +1 -1
- data/lib/tdlib/types/password_state.rb +1 -1
- data/lib/tdlib/types/payment_form.rb +4 -4
- data/lib/tdlib/types/payment_form_theme.rb +6 -6
- data/lib/tdlib/types/payment_receipt.rb +7 -7
- data/lib/tdlib/types/payment_result.rb +1 -1
- data/lib/tdlib/types/payments_provider_stripe.rb +1 -1
- data/lib/tdlib/types/personal_details.rb +10 -9
- data/lib/tdlib/types/phone_number_info.rb +4 -3
- data/lib/tdlib/types/photo_size.rb +4 -4
- data/lib/tdlib/types/point.rb +2 -2
- data/lib/tdlib/types/poll.rb +6 -6
- data/lib/tdlib/types/poll_option.rb +3 -3
- data/lib/tdlib/types/poll_type/quiz.rb +1 -1
- data/lib/tdlib/types/profile_photo.rb +1 -1
- data/lib/tdlib/types/proxy.rb +4 -4
- data/lib/tdlib/types/proxy_type/http.rb +2 -2
- data/lib/tdlib/types/proxy_type/mtproto.rb +1 -1
- data/lib/tdlib/types/proxy_type/socks5.rb +2 -2
- data/lib/tdlib/types/push_message_content/animation.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_add_members.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_change_title.rb +1 -1
- data/lib/tdlib/types/push_message_content/chat_delete_member.rb +1 -1
- data/lib/tdlib/types/push_message_content/contact.rb +1 -1
- data/lib/tdlib/types/push_message_content/game.rb +1 -1
- data/lib/tdlib/types/push_message_content/game_score.rb +2 -2
- data/lib/tdlib/types/push_message_content/invoice.rb +1 -1
- data/lib/tdlib/types/push_message_content/media_album.rb +1 -1
- data/lib/tdlib/types/push_message_content/message_forwards.rb +1 -1
- data/lib/tdlib/types/push_message_content/photo.rb +1 -1
- data/lib/tdlib/types/push_message_content/poll.rb +1 -1
- data/lib/tdlib/types/push_message_content/sticker.rb +1 -1
- data/lib/tdlib/types/push_message_content/text.rb +1 -1
- data/lib/tdlib/types/push_message_content/video.rb +1 -1
- data/lib/tdlib/types/push_receiver_id.rb +1 -1
- data/lib/tdlib/types/recommended_chat_filter.rb +1 -1
- data/lib/tdlib/types/recovery_email_address.rb +1 -1
- data/lib/tdlib/types/remote_file.rb +3 -3
- data/lib/tdlib/types/rich_text/anchor.rb +1 -1
- data/lib/tdlib/types/rich_text/anchor_link.rb +2 -2
- data/lib/tdlib/types/rich_text/email_address.rb +1 -1
- data/lib/tdlib/types/rich_text/icon.rb +2 -2
- data/lib/tdlib/types/rich_text/phone_number.rb +1 -1
- data/lib/tdlib/types/rich_text/plain.rb +1 -1
- data/lib/tdlib/types/rich_text/reference.rb +3 -3
- data/lib/tdlib/types/rich_text/url.rb +1 -1
- data/lib/tdlib/types/saved_credentials.rb +2 -2
- data/lib/tdlib/types/scope_notification_settings.rb +2 -2
- data/lib/tdlib/types/seconds.rb +1 -1
- data/lib/tdlib/types/secret_chat.rb +4 -4
- data/lib/tdlib/types/session.rb +15 -15
- data/lib/tdlib/types/shipping_option.rb +2 -2
- data/lib/tdlib/types/statistical_graph/async.rb +1 -1
- data/lib/tdlib/types/statistical_graph/data.rb +2 -2
- data/lib/tdlib/types/statistical_graph/error.rb +1 -1
- data/lib/tdlib/types/statistical_value.rb +3 -3
- data/lib/tdlib/types/sticker.rb +4 -4
- data/lib/tdlib/types/sticker_set.rb +3 -3
- data/lib/tdlib/types/sticker_set_info.rb +4 -4
- data/lib/tdlib/types/sticker_sets.rb +1 -1
- data/lib/tdlib/types/storage_statistics.rb +2 -2
- data/lib/tdlib/types/storage_statistics_by_chat.rb +3 -3
- data/lib/tdlib/types/storage_statistics_by_file_type.rb +2 -2
- data/lib/tdlib/types/storage_statistics_fast.rb +5 -5
- data/lib/tdlib/types/suggested_action/convert_to_broadcast_group.rb +1 -1
- data/lib/tdlib/types/supergroup.rb +7 -6
- data/lib/tdlib/types/supergroup_full_info.rb +11 -11
- data/lib/tdlib/types/supergroup_members_filter/banned.rb +1 -1
- data/lib/tdlib/types/supergroup_members_filter/contacts.rb +1 -1
- data/lib/tdlib/types/supergroup_members_filter/mention.rb +2 -2
- data/lib/tdlib/types/supergroup_members_filter/restricted.rb +1 -1
- data/lib/tdlib/types/supergroup_members_filter/search.rb +1 -1
- data/lib/tdlib/types/t_me_url.rb +1 -1
- data/lib/tdlib/types/t_me_url_type/sticker_set.rb +1 -1
- data/lib/tdlib/types/t_me_url_type/supergroup.rb +1 -1
- data/lib/tdlib/types/t_me_url_type/user.rb +1 -1
- data/lib/tdlib/types/tdlib_parameters.rb +12 -11
- data/lib/tdlib/types/temporary_password_state.rb +1 -1
- data/lib/tdlib/types/terms_of_service.rb +1 -1
- data/lib/tdlib/types/text.rb +1 -1
- data/lib/tdlib/types/text_entity.rb +2 -2
- data/lib/tdlib/types/text_entity_type/mention_name.rb +1 -1
- data/lib/tdlib/types/text_entity_type/pre_code.rb +1 -1
- data/lib/tdlib/types/text_entity_type/text_url.rb +1 -1
- data/lib/tdlib/types/text_parse_mode/markdown.rb +1 -1
- data/lib/tdlib/types/thumbnail.rb +2 -2
- data/lib/tdlib/types/update/animation_search_parameters.rb +2 -2
- data/lib/tdlib/types/update/basic_group_full_info.rb +1 -1
- data/lib/tdlib/types/update/chat_action_bar.rb +1 -1
- data/lib/tdlib/types/update/chat_default_disable_notification.rb +1 -1
- data/lib/tdlib/types/update/chat_draft_message.rb +1 -1
- data/lib/tdlib/types/update/chat_has_scheduled_messages.rb +1 -1
- data/lib/tdlib/types/update/chat_is_blocked.rb +1 -1
- data/lib/tdlib/types/update/chat_is_marked_as_unread.rb +1 -1
- data/lib/tdlib/types/update/chat_last_message.rb +1 -1
- data/lib/tdlib/types/update/chat_member.rb +3 -3
- data/lib/tdlib/types/update/chat_message_ttl_setting.rb +2 -2
- data/lib/tdlib/types/update/chat_notification_settings.rb +1 -1
- data/lib/tdlib/types/update/chat_online_member_count.rb +2 -2
- data/lib/tdlib/types/update/chat_permissions.rb +1 -1
- data/lib/tdlib/types/update/chat_photo.rb +1 -1
- data/lib/tdlib/types/update/chat_position.rb +1 -1
- data/lib/tdlib/types/update/chat_read_inbox.rb +3 -3
- data/lib/tdlib/types/update/chat_read_outbox.rb +2 -2
- data/lib/tdlib/types/update/chat_reply_markup.rb +2 -2
- data/lib/tdlib/types/update/chat_title.rb +2 -2
- data/lib/tdlib/types/update/chat_unread_mention_count.rb +2 -2
- data/lib/tdlib/types/update/chat_voice_chat.rb +1 -1
- data/lib/tdlib/types/update/delete_messages.rb +2 -2
- data/lib/tdlib/types/update/dice_emojis.rb +1 -1
- data/lib/tdlib/types/update/favorite_stickers.rb +1 -1
- data/lib/tdlib/types/update/file_generation_start.rb +5 -5
- data/lib/tdlib/types/update/file_generation_stop.rb +1 -1
- data/lib/tdlib/types/update/group_call_participant.rb +1 -1
- data/lib/tdlib/types/update/installed_sticker_sets.rb +1 -1
- data/lib/tdlib/types/update/language_pack_strings.rb +2 -2
- data/lib/tdlib/types/update/message_content.rb +2 -2
- data/lib/tdlib/types/update/message_content_opened.rb +2 -2
- data/lib/tdlib/types/update/message_edited.rb +3 -3
- data/lib/tdlib/types/update/message_interaction_info.rb +2 -2
- data/lib/tdlib/types/update/message_is_pinned.rb +2 -2
- data/lib/tdlib/types/update/message_live_location_viewed.rb +2 -2
- data/lib/tdlib/types/update/message_mention_read.rb +3 -3
- data/lib/tdlib/types/update/message_send_acknowledged.rb +2 -2
- data/lib/tdlib/types/update/message_send_failed.rb +3 -3
- data/lib/tdlib/types/update/message_send_succeeded.rb +1 -1
- data/lib/tdlib/types/update/new_call_signaling_data.rb +2 -2
- data/lib/tdlib/types/update/new_callback_query.rb +5 -5
- data/lib/tdlib/types/update/new_chosen_inline_result.rb +4 -4
- data/lib/tdlib/types/update/new_custom_event.rb +1 -1
- data/lib/tdlib/types/update/new_custom_query.rb +3 -3
- data/lib/tdlib/types/update/new_inline_callback_query.rb +4 -4
- data/lib/tdlib/types/update/new_inline_query.rb +4 -4
- data/lib/tdlib/types/update/new_pre_checkout_query.rb +7 -7
- data/lib/tdlib/types/update/new_shipping_query.rb +3 -3
- data/lib/tdlib/types/update/notification.rb +1 -1
- data/lib/tdlib/types/update/notification_group.rb +5 -5
- data/lib/tdlib/types/update/option.rb +1 -1
- data/lib/tdlib/types/update/poll_answer.rb +3 -3
- data/lib/tdlib/types/update/recent_stickers.rb +1 -1
- data/lib/tdlib/types/update/saved_animations.rb +1 -1
- data/lib/tdlib/types/update/service_notification.rb +1 -1
- data/lib/tdlib/types/update/supergroup_full_info.rb +1 -1
- data/lib/tdlib/types/update/terms_of_service.rb +1 -1
- data/lib/tdlib/types/update/unread_chat_count.rb +5 -5
- data/lib/tdlib/types/update/unread_message_count.rb +2 -2
- data/lib/tdlib/types/update/user_chat_action.rb +3 -3
- data/lib/tdlib/types/update/user_full_info.rb +1 -1
- data/lib/tdlib/types/update/user_status.rb +1 -1
- data/lib/tdlib/types/user.rb +8 -8
- data/lib/tdlib/types/user_full_info.rb +3 -3
- data/lib/tdlib/types/user_privacy_setting_rule/allow_chat_members.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule/allow_users.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_chat_members.rb +1 -1
- data/lib/tdlib/types/user_privacy_setting_rule/restrict_users.rb +1 -1
- data/lib/tdlib/types/user_status/offline.rb +1 -1
- data/lib/tdlib/types/user_status/online.rb +1 -1
- data/lib/tdlib/types/user_type/bot.rb +2 -1
- data/lib/tdlib/types/users.rb +2 -2
- data/lib/tdlib/types/validated_order_info.rb +1 -1
- data/lib/tdlib/types/venue.rb +5 -5
- data/lib/tdlib/types/video.rb +5 -5
- data/lib/tdlib/types/video_note.rb +2 -2
- data/lib/tdlib/types/voice_chat.rb +1 -1
- data/lib/tdlib/types/voice_note.rb +3 -3
- data/lib/tdlib/types/web_page.rb +12 -12
- data/lib/tdlib/types/web_page_instant_view.rb +2 -2
- data/tdlib-schema.gemspec +1 -1
- metadata +2 -2
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# A video message.
|
3
3
|
#
|
4
4
|
# @attr video [TD::Types::Video, nil] Message content; may be null.
|
5
|
-
# @attr caption [String] Video caption.
|
5
|
+
# @attr caption [TD::Types::String] Video caption.
|
6
6
|
# @attr is_secret [Boolean] True, if the video is secret.
|
7
7
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
8
8
|
class PushMessageContent::Video < PushMessageContent
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# Describes a recommended chat filter.
|
3
3
|
#
|
4
4
|
# @attr filter [TD::Types::ChatFilter] The chat filter.
|
5
|
-
# @attr description [String] Chat filter description.
|
5
|
+
# @attr description [TD::Types::String] Chat filter description.
|
6
6
|
class RecommendedChatFilter < Base
|
7
7
|
attribute :filter, TD::Types::ChatFilter
|
8
8
|
attribute :description, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains information about the current recovery email address.
|
3
3
|
#
|
4
|
-
# @attr recovery_email_address [String] Recovery email address.
|
4
|
+
# @attr recovery_email_address [TD::Types::String] Recovery email address.
|
5
5
|
class RecoveryEmailAddress < Base
|
6
6
|
attribute :recovery_email_address, TD::Types::String
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a remote file.
|
3
3
|
#
|
4
|
-
# @attr id [String, nil] Remote file identifier; may be empty.
|
4
|
+
# @attr id [TD::Types::String, nil] Remote file identifier; may be empty.
|
5
5
|
# Can be used by the current user across application restarts or even from other devices.
|
6
6
|
# Uniquely identifies a file, but a file can have a lot of different valid identifiers.
|
7
7
|
# If the ID starts with "http://" or "https://", it represents the HTTP URL of the file.
|
@@ -10,7 +10,7 @@ module TD::Types
|
|
10
10
|
# process by sending {TD::Types::Update::FileGenerationStart} to the application with the HTTP URL in the original_path
|
11
11
|
# and "#url#" as the conversion string.
|
12
12
|
# Application should generate the file by downloading it to the specified location.
|
13
|
-
# @attr unique_id [String, nil] Unique file identifier; may be empty if unknown.
|
13
|
+
# @attr unique_id [TD::Types::String, nil] Unique file identifier; may be empty if unknown.
|
14
14
|
# The unique file identifier which is the same for the same file even for different users and is persistent over
|
15
15
|
# time.
|
16
16
|
# @attr is_uploading_active [Boolean] True, if the file is currently being uploaded (or a remote copy is being
|
@@ -22,6 +22,6 @@ module TD::Types
|
|
22
22
|
attribute :unique_id, TD::Types::String.optional.default(nil)
|
23
23
|
attribute :is_uploading_active, TD::Types::Bool
|
24
24
|
attribute :is_uploading_completed, TD::Types::Bool
|
25
|
-
attribute :uploaded_size, TD::Types::Integer
|
25
|
+
attribute :uploaded_size, TD::Types::Coercible::Integer
|
26
26
|
end
|
27
27
|
end
|
@@ -2,9 +2,9 @@ module TD::Types
|
|
2
2
|
# A link to an anchor on the same web page.
|
3
3
|
#
|
4
4
|
# @attr text [TD::Types::RichText] The link text.
|
5
|
-
# @attr anchor_name [String] The anchor name.
|
5
|
+
# @attr anchor_name [TD::Types::String] The anchor name.
|
6
6
|
# If the name is empty, the link should bring back to top.
|
7
|
-
# @attr url [String] An HTTP URL, opening the anchor.
|
7
|
+
# @attr url [TD::Types::String] An HTTP URL, opening the anchor.
|
8
8
|
class RichText::AnchorLink < RichText
|
9
9
|
attribute :text, TD::Types::RichText
|
10
10
|
attribute :anchor_name, TD::Types::String
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# A rich text email link.
|
3
3
|
#
|
4
4
|
# @attr text [TD::Types::RichText] Text.
|
5
|
-
# @attr email_address [String] Email address.
|
5
|
+
# @attr email_address [TD::Types::String] Email address.
|
6
6
|
class RichText::EmailAddress < RichText
|
7
7
|
attribute :text, TD::Types::RichText
|
8
8
|
attribute :email_address, TD::Types::String
|
@@ -7,7 +7,7 @@ module TD::Types
|
|
7
7
|
# @attr height [Integer] Height of a bounding box in which the image should be shown; 0 if unknown.
|
8
8
|
class RichText::Icon < RichText
|
9
9
|
attribute :document, TD::Types::Document
|
10
|
-
attribute :width, TD::Types::Integer
|
11
|
-
attribute :height, TD::Types::Integer
|
10
|
+
attribute :width, TD::Types::Coercible::Integer
|
11
|
+
attribute :height, TD::Types::Coercible::Integer
|
12
12
|
end
|
13
13
|
end
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# A rich text phone number.
|
3
3
|
#
|
4
4
|
# @attr text [TD::Types::RichText] Text.
|
5
|
-
# @attr phone_number [String] Phone number.
|
5
|
+
# @attr phone_number [TD::Types::String] Phone number.
|
6
6
|
class RichText::PhoneNumber < RichText
|
7
7
|
attribute :text, TD::Types::RichText
|
8
8
|
attribute :phone_number, TD::Types::String
|
@@ -2,9 +2,9 @@ module TD::Types
|
|
2
2
|
# A reference to a richTexts object on the same web page.
|
3
3
|
#
|
4
4
|
# @attr text [TD::Types::RichText] The text.
|
5
|
-
# @attr anchor_name [String] The name of a {TD::Types::RichText::Anchor} object, which is the first
|
6
|
-
# target {TD::Types::RichText::s} object.
|
7
|
-
# @attr url [String] An HTTP URL, opening the reference.
|
5
|
+
# @attr anchor_name [TD::Types::String] The name of a {TD::Types::RichText::Anchor} object, which is the first
|
6
|
+
# element of the target {TD::Types::RichText::s} object.
|
7
|
+
# @attr url [TD::Types::String] An HTTP URL, opening the reference.
|
8
8
|
class RichText::Reference < RichText
|
9
9
|
attribute :text, TD::Types::RichText
|
10
10
|
attribute :anchor_name, TD::Types::String
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# A rich text URL link.
|
3
3
|
#
|
4
4
|
# @attr text [TD::Types::RichText] Text.
|
5
|
-
# @attr url [String] URL.
|
5
|
+
# @attr url [TD::Types::String] URL.
|
6
6
|
# @attr is_cached [Boolean] True, if the URL has cached instant view server-side.
|
7
7
|
class RichText::Url < RichText
|
8
8
|
attribute :text, TD::Types::RichText
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains information about saved card credentials.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the saved credentials.
|
5
|
-
# @attr title [String] Title of the saved credentials.
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the saved credentials.
|
5
|
+
# @attr title [TD::Types::String] Title of the saved credentials.
|
6
6
|
class SavedCredentials < Base
|
7
7
|
attribute :id, TD::Types::String
|
8
8
|
attribute :title, TD::Types::String
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# Contains information about notification settings for several chats.
|
3
3
|
#
|
4
4
|
# @attr mute_for [Integer] Time left before notifications will be unmuted, in seconds.
|
5
|
-
# @attr sound [String] The name of an audio file to be used for notification sounds; only applies to iOS
|
5
|
+
# @attr sound [TD::Types::String] The name of an audio file to be used for notification sounds; only applies to iOS
|
6
6
|
# applications.
|
7
7
|
# @attr show_preview [Boolean] True, if message content should be displayed in notifications.
|
8
8
|
# @attr disable_pinned_message_notifications [Boolean] True, if notifications for incoming pinned messages will be
|
@@ -10,7 +10,7 @@ module TD::Types
|
|
10
10
|
# @attr disable_mention_notifications [Boolean] True, if notifications for messages with mentions will be created as
|
11
11
|
# for an ordinary unread message.
|
12
12
|
class ScopeNotificationSettings < Base
|
13
|
-
attribute :mute_for, TD::Types::Integer
|
13
|
+
attribute :mute_for, TD::Types::Coercible::Integer
|
14
14
|
attribute :sound, TD::Types::String
|
15
15
|
attribute :show_preview, TD::Types::Bool
|
16
16
|
attribute :disable_pinned_message_notifications, TD::Types::Bool
|
data/lib/tdlib/types/seconds.rb
CHANGED
@@ -15,11 +15,11 @@ module TD::Types
|
|
15
15
|
# Video notes are supported if the layer >= 66; nested text entities and underline and strikethrough entities are
|
16
16
|
# supported if the layer >= 101.
|
17
17
|
class SecretChat < Base
|
18
|
-
attribute :id, TD::Types::Integer
|
19
|
-
attribute :user_id, TD::Types::Integer
|
18
|
+
attribute :id, TD::Types::Coercible::Integer
|
19
|
+
attribute :user_id, TD::Types::Coercible::Integer
|
20
20
|
attribute :state, TD::Types::SecretChatState
|
21
21
|
attribute :is_outbound, TD::Types::Bool
|
22
|
-
attribute :key_hash, TD::Types::String
|
23
|
-
attribute :layer, TD::Types::Integer
|
22
|
+
attribute :key_hash, TD::Types::Coercible::String
|
23
|
+
attribute :layer, TD::Types::Coercible::Integer
|
24
24
|
end
|
25
25
|
end
|
data/lib/tdlib/types/session.rb
CHANGED
@@ -6,35 +6,35 @@ module TD::Types
|
|
6
6
|
# @attr is_current [Boolean] True, if this session is the current session.
|
7
7
|
# @attr is_password_pending [Boolean] True, if a password is needed to complete authorization of the session.
|
8
8
|
# @attr api_id [Integer] Telegram API identifier, as provided by the application.
|
9
|
-
# @attr application_name [String] Name of the application, as provided by the application.
|
10
|
-
# @attr application_version [String] The version of the application, as provided by the application.
|
9
|
+
# @attr application_name [TD::Types::String] Name of the application, as provided by the application.
|
10
|
+
# @attr application_version [TD::Types::String] The version of the application, as provided by the application.
|
11
11
|
# @attr is_official_application [Boolean] True, if the application is an official application or uses the api_id of
|
12
12
|
# an official application.
|
13
|
-
# @attr device_model [String] Model of the device the application has been run or is running on, as
|
14
|
-
# application.
|
15
|
-
# @attr platform [String] Operating system the application has been run or is running on, as provided by the
|
16
|
-
# application.
|
17
|
-
# @attr system_version [String] Version of the operating system the application has been run or is running on, as
|
13
|
+
# @attr device_model [TD::Types::String] Model of the device the application has been run or is running on, as
|
18
14
|
# provided by the application.
|
15
|
+
# @attr platform [TD::Types::String] Operating system the application has been run or is running on, as provided by
|
16
|
+
# the application.
|
17
|
+
# @attr system_version [TD::Types::String] Version of the operating system the application has been run or is running
|
18
|
+
# on, as provided by the application.
|
19
19
|
# @attr log_in_date [Integer] Point in time (Unix timestamp) when the user has logged in.
|
20
20
|
# @attr last_active_date [Integer] Point in time (Unix timestamp) when the session was last used.
|
21
|
-
# @attr ip [String] IP address from which the session was created, in human-readable format.
|
22
|
-
# @attr country [String] A two-letter country code for the country from which the session was created,
|
23
|
-
# IP address.
|
24
|
-
# @attr region [String] Region code from which the session was created, based on the IP address.
|
21
|
+
# @attr ip [TD::Types::String] IP address from which the session was created, in human-readable format.
|
22
|
+
# @attr country [TD::Types::String] A two-letter country code for the country from which the session was created,
|
23
|
+
# based on the IP address.
|
24
|
+
# @attr region [TD::Types::String] Region code from which the session was created, based on the IP address.
|
25
25
|
class Session < Base
|
26
|
-
attribute :id, TD::Types::Integer
|
26
|
+
attribute :id, TD::Types::Coercible::Integer
|
27
27
|
attribute :is_current, TD::Types::Bool
|
28
28
|
attribute :is_password_pending, TD::Types::Bool
|
29
|
-
attribute :api_id, TD::Types::Integer
|
29
|
+
attribute :api_id, TD::Types::Coercible::Integer
|
30
30
|
attribute :application_name, TD::Types::String
|
31
31
|
attribute :application_version, TD::Types::String
|
32
32
|
attribute :is_official_application, TD::Types::Bool
|
33
33
|
attribute :device_model, TD::Types::String
|
34
34
|
attribute :platform, TD::Types::String
|
35
35
|
attribute :system_version, TD::Types::String
|
36
|
-
attribute :log_in_date, TD::Types::Integer
|
37
|
-
attribute :last_active_date, TD::Types::Integer
|
36
|
+
attribute :log_in_date, TD::Types::Coercible::Integer
|
37
|
+
attribute :last_active_date, TD::Types::Coercible::Integer
|
38
38
|
attribute :ip, TD::Types::String
|
39
39
|
attribute :country, TD::Types::String
|
40
40
|
attribute :region, TD::Types::String
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# One shipping option.
|
3
3
|
#
|
4
|
-
# @attr id [String] Shipping option identifier.
|
5
|
-
# @attr title [String] Option title.
|
4
|
+
# @attr id [TD::Types::String] Shipping option identifier.
|
5
|
+
# @attr title [TD::Types::String] Option title.
|
6
6
|
# @attr price_parts [Array<TD::Types::LabeledPricePart>] A list of objects used to calculate the total shipping
|
7
7
|
# costs.
|
8
8
|
class ShippingOption < Base
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# The graph data to be asynchronously loaded through getStatisticalGraph.
|
3
3
|
#
|
4
|
-
# @attr token [String] The token to use for data loading.
|
4
|
+
# @attr token [TD::Types::String] The token to use for data loading.
|
5
5
|
class StatisticalGraph::Async < StatisticalGraph
|
6
6
|
attribute :token, TD::Types::String
|
7
7
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A graph data.
|
3
3
|
#
|
4
|
-
# @attr json_data [String] Graph data in JSON format.
|
5
|
-
# @attr zoom_token [String] If non-empty, a token which can be used to receive a zoomed in graph.
|
4
|
+
# @attr json_data [TD::Types::String] Graph data in JSON format.
|
5
|
+
# @attr zoom_token [TD::Types::String] If non-empty, a token which can be used to receive a zoomed in graph.
|
6
6
|
class StatisticalGraph::Data < StatisticalGraph
|
7
7
|
attribute :json_data, TD::Types::String
|
8
8
|
attribute :zoom_token, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# An error message to be shown to the user instead of the graph.
|
3
3
|
#
|
4
|
-
# @attr error_message [String] The error message.
|
4
|
+
# @attr error_message [TD::Types::String] The error message.
|
5
5
|
class StatisticalGraph::Error < StatisticalGraph
|
6
6
|
attribute :error_message, TD::Types::String
|
7
7
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr previous_value [Float] The value for the previous day.
|
6
6
|
# @attr growth_rate_percentage [Float] The growth rate of the value, as a percentage.
|
7
7
|
class StatisticalValue < Base
|
8
|
-
attribute :value, TD::Types::Float
|
9
|
-
attribute :previous_value, TD::Types::Float
|
10
|
-
attribute :growth_rate_percentage, TD::Types::Float
|
8
|
+
attribute :value, TD::Types::Coercible::Float
|
9
|
+
attribute :previous_value, TD::Types::Coercible::Float
|
10
|
+
attribute :growth_rate_percentage, TD::Types::Coercible::Float
|
11
11
|
end
|
12
12
|
end
|
data/lib/tdlib/types/sticker.rb
CHANGED
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr set_id [Integer] The identifier of the sticker set to which the sticker belongs; 0 if none.
|
5
5
|
# @attr width [Integer] Sticker width; as defined by the sender.
|
6
6
|
# @attr height [Integer] Sticker height; as defined by the sender.
|
7
|
-
# @attr emoji [String] Emoji corresponding to the sticker.
|
7
|
+
# @attr emoji [TD::Types::String] Emoji corresponding to the sticker.
|
8
8
|
# @attr is_animated [Boolean] True, if the sticker is an animated sticker in TGS format.
|
9
9
|
# @attr is_mask [Boolean] True, if the sticker is a mask.
|
10
10
|
# @attr mask_position [TD::Types::MaskPosition, nil] Position where the mask should be placed; may be null.
|
@@ -14,9 +14,9 @@ module TD::Types
|
|
14
14
|
# @attr thumbnail [TD::Types::Thumbnail, nil] Sticker thumbnail in WEBP or JPEG format; may be null.
|
15
15
|
# @attr sticker [TD::Types::File] File containing the sticker.
|
16
16
|
class Sticker < Base
|
17
|
-
attribute :set_id, TD::Types::Integer
|
18
|
-
attribute :width, TD::Types::Integer
|
19
|
-
attribute :height, TD::Types::Integer
|
17
|
+
attribute :set_id, TD::Types::Coercible::Integer
|
18
|
+
attribute :width, TD::Types::Coercible::Integer
|
19
|
+
attribute :height, TD::Types::Coercible::Integer
|
20
20
|
attribute :emoji, TD::Types::String
|
21
21
|
attribute :is_animated, TD::Types::Bool
|
22
22
|
attribute :is_mask, TD::Types::Bool
|
@@ -2,8 +2,8 @@ module TD::Types
|
|
2
2
|
# Represents a sticker set.
|
3
3
|
#
|
4
4
|
# @attr id [Integer] Identifier of the sticker set.
|
5
|
-
# @attr title [String] Title of the sticker set.
|
6
|
-
# @attr name [String] Name of the sticker set.
|
5
|
+
# @attr title [TD::Types::String] Title of the sticker set.
|
6
|
+
# @attr name [TD::Types::String] Name of the sticker set.
|
7
7
|
# @attr thumbnail [TD::Types::Thumbnail, nil] Sticker set thumbnail in WEBP or TGS format with width and height 100;
|
8
8
|
# may be null.
|
9
9
|
# The file can be downloaded only before the thumbnail is changed.
|
@@ -22,7 +22,7 @@ module TD::Types
|
|
22
22
|
# The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the
|
23
23
|
# corresponding Sticker object.
|
24
24
|
class StickerSet < Base
|
25
|
-
attribute :id, TD::Types::Integer
|
25
|
+
attribute :id, TD::Types::Coercible::Integer
|
26
26
|
attribute :title, TD::Types::String
|
27
27
|
attribute :name, TD::Types::String
|
28
28
|
attribute :thumbnail, TD::Types::Thumbnail.optional.default(nil)
|
@@ -2,8 +2,8 @@ module TD::Types
|
|
2
2
|
# Represents short information about a sticker set.
|
3
3
|
#
|
4
4
|
# @attr id [Integer] Identifier of the sticker set.
|
5
|
-
# @attr title [String] Title of the sticker set.
|
6
|
-
# @attr name [String] Name of the sticker set.
|
5
|
+
# @attr title [TD::Types::String] Title of the sticker set.
|
6
|
+
# @attr name [TD::Types::String] Name of the sticker set.
|
7
7
|
# @attr thumbnail [TD::Types::Thumbnail, nil] Sticker set thumbnail in WEBP or TGS format with width and height 100;
|
8
8
|
# may be null.
|
9
9
|
# @attr thumbnail_outline [Array<TD::Types::ClosedVectorPath>, nil] Sticker set thumbnail's outline represented as a
|
@@ -21,7 +21,7 @@ module TD::Types
|
|
21
21
|
# context.
|
22
22
|
# If the application needs more stickers the full set should be requested.
|
23
23
|
class StickerSetInfo < Base
|
24
|
-
attribute :id, TD::Types::Integer
|
24
|
+
attribute :id, TD::Types::Coercible::Integer
|
25
25
|
attribute :title, TD::Types::String
|
26
26
|
attribute :name, TD::Types::String
|
27
27
|
attribute :thumbnail, TD::Types::Thumbnail.optional.default(nil)
|
@@ -32,7 +32,7 @@ module TD::Types
|
|
32
32
|
attribute :is_animated, TD::Types::Bool
|
33
33
|
attribute :is_masks, TD::Types::Bool
|
34
34
|
attribute :is_viewed, TD::Types::Bool
|
35
|
-
attribute :size, TD::Types::Integer
|
35
|
+
attribute :size, TD::Types::Coercible::Integer
|
36
36
|
attribute :covers, TD::Types::Array.of(TD::Types::Sticker)
|
37
37
|
end
|
38
38
|
end
|
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr total_count [Integer] Approximate total number of sticker sets found.
|
5
5
|
# @attr sets [Array<TD::Types::StickerSetInfo>] List of sticker sets.
|
6
6
|
class StickerSets < Base
|
7
|
-
attribute :total_count, TD::Types::Integer
|
7
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
8
8
|
attribute :sets, TD::Types::Array.of(TD::Types::StickerSetInfo)
|
9
9
|
end
|
10
10
|
end
|
@@ -5,8 +5,8 @@ module TD::Types
|
|
5
5
|
# @attr count [Integer] Total number of files.
|
6
6
|
# @attr by_chat [Array<TD::Types::StorageStatisticsByChat>] Statistics split by chats.
|
7
7
|
class StorageStatistics < Base
|
8
|
-
attribute :size, TD::Types::Integer
|
9
|
-
attribute :count, TD::Types::Integer
|
8
|
+
attribute :size, TD::Types::Coercible::Integer
|
9
|
+
attribute :count, TD::Types::Coercible::Integer
|
10
10
|
attribute :by_chat, TD::Types::Array.of(TD::Types::StorageStatisticsByChat)
|
11
11
|
end
|
12
12
|
end
|
@@ -6,9 +6,9 @@ module TD::Types
|
|
6
6
|
# @attr count [Integer] Total number of files in the chat.
|
7
7
|
# @attr by_file_type [Array<TD::Types::StorageStatisticsByFileType>] Statistics split by file types.
|
8
8
|
class StorageStatisticsByChat < Base
|
9
|
-
attribute :chat_id, TD::Types::Integer
|
10
|
-
attribute :size, TD::Types::Integer
|
11
|
-
attribute :count, TD::Types::Integer
|
9
|
+
attribute :chat_id, TD::Types::Coercible::Integer
|
10
|
+
attribute :size, TD::Types::Coercible::Integer
|
11
|
+
attribute :count, TD::Types::Coercible::Integer
|
12
12
|
attribute :by_file_type, TD::Types::Array.of(TD::Types::StorageStatisticsByFileType)
|
13
13
|
end
|
14
14
|
end
|
@@ -6,7 +6,7 @@ module TD::Types
|
|
6
6
|
# @attr count [Integer] Total number of files.
|
7
7
|
class StorageStatisticsByFileType < Base
|
8
8
|
attribute :file_type, TD::Types::FileType
|
9
|
-
attribute :size, TD::Types::Integer
|
10
|
-
attribute :count, TD::Types::Integer
|
9
|
+
attribute :size, TD::Types::Coercible::Integer
|
10
|
+
attribute :count, TD::Types::Coercible::Integer
|
11
11
|
end
|
12
12
|
end
|
@@ -7,10 +7,10 @@ module TD::Types
|
|
7
7
|
# @attr language_pack_database_size [Integer] Size of the language pack database.
|
8
8
|
# @attr log_size [Integer] Size of the TDLib internal log.
|
9
9
|
class StorageStatisticsFast < Base
|
10
|
-
attribute :files_size, TD::Types::Integer
|
11
|
-
attribute :file_count, TD::Types::Integer
|
12
|
-
attribute :database_size, TD::Types::Integer
|
13
|
-
attribute :language_pack_database_size, TD::Types::Integer
|
14
|
-
attribute :log_size, TD::Types::Integer
|
10
|
+
attribute :files_size, TD::Types::Coercible::Integer
|
11
|
+
attribute :file_count, TD::Types::Coercible::Integer
|
12
|
+
attribute :database_size, TD::Types::Coercible::Integer
|
13
|
+
attribute :language_pack_database_size, TD::Types::Coercible::Integer
|
14
|
+
attribute :log_size, TD::Types::Coercible::Integer
|
15
15
|
end
|
16
16
|
end
|