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
@@ -3,7 +3,7 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr id [Integer] The payment form identifier.
|
5
5
|
# @attr invoice [TD::Types::Invoice] Full information of the invoice.
|
6
|
-
# @attr url [String] Payment form URL.
|
6
|
+
# @attr url [TD::Types::String] Payment form URL.
|
7
7
|
# @attr seller_bot_user_id [Integer] User identifier of the seller bot.
|
8
8
|
# @attr payments_provider_user_id [Integer] User identifier of the payment provider bot.
|
9
9
|
# @attr payments_provider [TD::Types::PaymentsProviderStripe, nil] Contains information about the payment provider,
|
@@ -15,11 +15,11 @@ module TD::Types
|
|
15
15
|
# @attr need_password [Boolean] True, if the user will be able to save credentials protected by a password they set
|
16
16
|
# up.
|
17
17
|
class PaymentForm < Base
|
18
|
-
attribute :id, TD::Types::Integer
|
18
|
+
attribute :id, TD::Types::Coercible::Integer
|
19
19
|
attribute :invoice, TD::Types::Invoice
|
20
20
|
attribute :url, TD::Types::String
|
21
|
-
attribute :seller_bot_user_id, TD::Types::Integer
|
22
|
-
attribute :payments_provider_user_id, TD::Types::Integer
|
21
|
+
attribute :seller_bot_user_id, TD::Types::Coercible::Integer
|
22
|
+
attribute :payments_provider_user_id, TD::Types::Coercible::Integer
|
23
23
|
attribute :payments_provider, TD::Types::PaymentsProviderStripe.optional.default(nil)
|
24
24
|
attribute :saved_order_info, TD::Types::OrderInfo.optional.default(nil)
|
25
25
|
attribute :saved_credentials, TD::Types::SavedCredentials.optional.default(nil)
|
@@ -8,11 +8,11 @@ module TD::Types
|
|
8
8
|
# @attr button_color [Integer] A color of thebuttons in the RGB24 format.
|
9
9
|
# @attr button_text_color [Integer] A color of text on the buttons in the RGB24 format.
|
10
10
|
class PaymentFormTheme < Base
|
11
|
-
attribute :background_color, TD::Types::Integer
|
12
|
-
attribute :text_color, TD::Types::Integer
|
13
|
-
attribute :hint_color, TD::Types::Integer
|
14
|
-
attribute :link_color, TD::Types::Integer
|
15
|
-
attribute :button_color, TD::Types::Integer
|
16
|
-
attribute :button_text_color, TD::Types::Integer
|
11
|
+
attribute :background_color, TD::Types::Coercible::Integer
|
12
|
+
attribute :text_color, TD::Types::Coercible::Integer
|
13
|
+
attribute :hint_color, TD::Types::Coercible::Integer
|
14
|
+
attribute :link_color, TD::Types::Coercible::Integer
|
15
|
+
attribute :button_color, TD::Types::Coercible::Integer
|
16
|
+
attribute :button_text_color, TD::Types::Coercible::Integer
|
17
17
|
end
|
18
18
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains information about a successful payment.
|
3
3
|
#
|
4
|
-
# @attr title [String] Product title.
|
5
|
-
# @attr description [String] Product description.
|
4
|
+
# @attr title [TD::Types::String] Product title.
|
5
|
+
# @attr description [TD::Types::String] Product description.
|
6
6
|
# @attr photo [TD::Types::Photo, nil] Product photo; may be null.
|
7
7
|
# @attr date [Integer] Point in time (Unix timestamp) when the payment was made.
|
8
8
|
# @attr seller_bot_user_id [Integer] User identifier of the seller bot.
|
@@ -10,19 +10,19 @@ module TD::Types
|
|
10
10
|
# @attr invoice [TD::Types::Invoice] Contains information about the invoice.
|
11
11
|
# @attr order_info [TD::Types::OrderInfo, nil] Order information; may be null.
|
12
12
|
# @attr shipping_option [TD::Types::ShippingOption, nil] Chosen shipping option; may be null.
|
13
|
-
# @attr credentials_title [String] Title of the saved credentials chosen by the buyer.
|
13
|
+
# @attr credentials_title [TD::Types::String] Title of the saved credentials chosen by the buyer.
|
14
14
|
# @attr tip_amount [Integer] The amount of tip chosen by the buyer in the smallest units of the currency.
|
15
15
|
class PaymentReceipt < Base
|
16
16
|
attribute :title, TD::Types::String
|
17
17
|
attribute :description, TD::Types::String
|
18
18
|
attribute :photo, TD::Types::Photo.optional.default(nil)
|
19
|
-
attribute :date, TD::Types::Integer
|
20
|
-
attribute :seller_bot_user_id, TD::Types::Integer
|
21
|
-
attribute :payments_provider_user_id, TD::Types::Integer
|
19
|
+
attribute :date, TD::Types::Coercible::Integer
|
20
|
+
attribute :seller_bot_user_id, TD::Types::Coercible::Integer
|
21
|
+
attribute :payments_provider_user_id, TD::Types::Coercible::Integer
|
22
22
|
attribute :invoice, TD::Types::Invoice
|
23
23
|
attribute :order_info, TD::Types::OrderInfo.optional.default(nil)
|
24
24
|
attribute :shipping_option, TD::Types::ShippingOption.optional.default(nil)
|
25
25
|
attribute :credentials_title, TD::Types::String
|
26
|
-
attribute :tip_amount, TD::Types::Integer
|
26
|
+
attribute :tip_amount, TD::Types::Coercible::Integer
|
27
27
|
end
|
28
28
|
end
|
@@ -3,7 +3,7 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr success [Boolean] True, if the payment request was successful; otherwise the verification_url will be not
|
5
5
|
# empty.
|
6
|
-
# @attr verification_url [String] URL for additional payment credentials verification.
|
6
|
+
# @attr verification_url [TD::Types::String] URL for additional payment credentials verification.
|
7
7
|
class PaymentResult < Base
|
8
8
|
attribute :success, TD::Types::Bool
|
9
9
|
attribute :verification_url, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Stripe payment provider.
|
3
3
|
#
|
4
|
-
# @attr publishable_key [String] Stripe API publishable key.
|
4
|
+
# @attr publishable_key [TD::Types::String] Stripe API publishable key.
|
5
5
|
# @attr need_country [Boolean] True, if the user country must be provided.
|
6
6
|
# @attr need_postal_code [Boolean] True, if the user ZIP/postal code must be provided.
|
7
7
|
# @attr need_cardholder_name [Boolean] True, if the cardholder name must be provided.
|
@@ -1,16 +1,17 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Contains the user's personal details.
|
3
3
|
#
|
4
|
-
# @attr first_name [String] First name of the user written in English; 1-255 characters.
|
5
|
-
# @attr middle_name [String] Middle name of the user written in English; 0-255 characters.
|
6
|
-
# @attr last_name [String] Last name of the user written in English; 1-255 characters.
|
7
|
-
# @attr native_first_name [String] Native first name of the user; 1-255 characters.
|
8
|
-
# @attr native_middle_name [String] Native middle name of the user; 0-255 characters.
|
9
|
-
# @attr native_last_name [String] Native last name of the user; 1-255 characters.
|
4
|
+
# @attr first_name [TD::Types::String] First name of the user written in English; 1-255 characters.
|
5
|
+
# @attr middle_name [TD::Types::String] Middle name of the user written in English; 0-255 characters.
|
6
|
+
# @attr last_name [TD::Types::String] Last name of the user written in English; 1-255 characters.
|
7
|
+
# @attr native_first_name [TD::Types::String] Native first name of the user; 1-255 characters.
|
8
|
+
# @attr native_middle_name [TD::Types::String] Native middle name of the user; 0-255 characters.
|
9
|
+
# @attr native_last_name [TD::Types::String] Native last name of the user; 1-255 characters.
|
10
10
|
# @attr birthdate [TD::Types::Date] Birthdate of the user.
|
11
|
-
# @attr gender [String] Gender of the user, "male" or "female".
|
12
|
-
# @attr country_code [String] A two-letter ISO 3166-1 alpha-2 country code of the user's country.
|
13
|
-
# @attr residence_country_code [String] A two-letter ISO 3166-1 alpha-2 country code of the user's
|
11
|
+
# @attr gender [TD::Types::String] Gender of the user, "male" or "female".
|
12
|
+
# @attr country_code [TD::Types::String] A two-letter ISO 3166-1 alpha-2 country code of the user's country.
|
13
|
+
# @attr residence_country_code [TD::Types::String] A two-letter ISO 3166-1 alpha-2 country code of the user's
|
14
|
+
# residence country.
|
14
15
|
class PersonalDetails < Base
|
15
16
|
attribute :first_name, TD::Types::String
|
16
17
|
attribute :middle_name, TD::Types::String
|
@@ -3,9 +3,10 @@ module TD::Types
|
|
3
3
|
#
|
4
4
|
# @attr country [TD::Types::CountryInfo, nil] Information about the country to which the phone number belongs; may be
|
5
5
|
# null.
|
6
|
-
# @attr country_calling_code [String] The part of the phone number denoting country calling code or its
|
7
|
-
#
|
8
|
-
#
|
6
|
+
# @attr country_calling_code [TD::Types::String] The part of the phone number denoting country calling code or its
|
7
|
+
# part.
|
8
|
+
# @attr formatted_phone_number [TD::Types::String] The phone number without country calling code formatted
|
9
|
+
# accordingly to local rules.
|
9
10
|
class PhoneNumberInfo < Base
|
10
11
|
attribute :country, TD::Types::CountryInfo.optional.default(nil)
|
11
12
|
attribute :country_calling_code, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Describes an image in JPEG format.
|
3
3
|
#
|
4
|
-
# @attr type [String] Image type (see https://core.telegram.org/constructor/photoSize).
|
4
|
+
# @attr type [TD::Types::String] Image type (see https://core.telegram.org/constructor/photoSize).
|
5
5
|
# @attr photo [TD::Types::File] Information about the image file.
|
6
6
|
# @attr width [Integer] Image width.
|
7
7
|
# @attr height [Integer] Image height.
|
@@ -10,8 +10,8 @@ module TD::Types
|
|
10
10
|
class PhotoSize < Base
|
11
11
|
attribute :type, TD::Types::String
|
12
12
|
attribute :photo, TD::Types::File
|
13
|
-
attribute :width, TD::Types::Integer
|
14
|
-
attribute :height, TD::Types::Integer
|
15
|
-
attribute :progressive_sizes, TD::Types::Array.of(TD::Types::Integer)
|
13
|
+
attribute :width, TD::Types::Coercible::Integer
|
14
|
+
attribute :height, TD::Types::Coercible::Integer
|
15
|
+
attribute :progressive_sizes, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
16
16
|
end
|
17
17
|
end
|
data/lib/tdlib/types/point.rb
CHANGED
@@ -4,7 +4,7 @@ module TD::Types
|
|
4
4
|
# @attr x [Float] The point's first coordinate.
|
5
5
|
# @attr y [Float] The point's second coordinate.
|
6
6
|
class Point < Base
|
7
|
-
attribute :x, TD::Types::Float
|
8
|
-
attribute :y, TD::Types::Float
|
7
|
+
attribute :x, TD::Types::Coercible::Float
|
8
|
+
attribute :y, TD::Types::Coercible::Float
|
9
9
|
end
|
10
10
|
end
|
data/lib/tdlib/types/poll.rb
CHANGED
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# Describes a poll.
|
3
3
|
#
|
4
4
|
# @attr id [Integer] Unique poll identifier.
|
5
|
-
# @attr question [String] Poll question; 1-300 characters.
|
5
|
+
# @attr question [TD::Types::String] Poll question; 1-300 characters.
|
6
6
|
# @attr options [Array<TD::Types::PollOption>] List of poll answer options.
|
7
7
|
# @attr total_voter_count [Integer] Total number of voters, participating in the poll.
|
8
8
|
# @attr recent_voter_user_ids [Array<Integer>] User identifiers of recent voters, if the poll is non-anonymous.
|
@@ -12,15 +12,15 @@ module TD::Types
|
|
12
12
|
# @attr close_date [Integer] Point in time (Unix timestamp) when the poll will be automatically closed.
|
13
13
|
# @attr is_closed [Boolean] True, if the poll is closed.
|
14
14
|
class Poll < Base
|
15
|
-
attribute :id, TD::Types::Integer
|
15
|
+
attribute :id, TD::Types::Coercible::Integer
|
16
16
|
attribute :question, TD::Types::String
|
17
17
|
attribute :options, TD::Types::Array.of(TD::Types::PollOption)
|
18
|
-
attribute :total_voter_count, TD::Types::Integer
|
19
|
-
attribute :recent_voter_user_ids, TD::Types::Array.of(TD::Types::Integer)
|
18
|
+
attribute :total_voter_count, TD::Types::Coercible::Integer
|
19
|
+
attribute :recent_voter_user_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
20
20
|
attribute :is_anonymous, TD::Types::Bool
|
21
21
|
attribute :type, TD::Types::PollType
|
22
|
-
attribute :open_period, TD::Types::Integer
|
23
|
-
attribute :close_date, TD::Types::Integer
|
22
|
+
attribute :open_period, TD::Types::Coercible::Integer
|
23
|
+
attribute :close_date, TD::Types::Coercible::Integer
|
24
24
|
attribute :is_closed, TD::Types::Bool
|
25
25
|
end
|
26
26
|
end
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Describes one answer option of a poll.
|
3
3
|
#
|
4
|
-
# @attr text [String] Option text; 1-100 characters.
|
4
|
+
# @attr text [TD::Types::String] Option text; 1-100 characters.
|
5
5
|
# @attr voter_count [Integer] Number of voters for this option, available only for closed or voted polls.
|
6
6
|
# @attr vote_percentage [Integer] The percentage of votes for this option; 0-100.
|
7
7
|
# @attr is_chosen [Boolean] True, if the option was chosen by the user.
|
8
8
|
# @attr is_being_chosen [Boolean] True, if the option is being chosen by a pending setPollAnswer request.
|
9
9
|
class PollOption < Base
|
10
10
|
attribute :text, TD::Types::String
|
11
|
-
attribute :voter_count, TD::Types::Integer
|
12
|
-
attribute :vote_percentage, TD::Types::Integer
|
11
|
+
attribute :voter_count, TD::Types::Coercible::Integer
|
12
|
+
attribute :vote_percentage, TD::Types::Coercible::Integer
|
13
13
|
attribute :is_chosen, TD::Types::Bool
|
14
14
|
attribute :is_being_chosen, TD::Types::Bool
|
15
15
|
end
|
@@ -5,7 +5,7 @@ module TD::Types
|
|
5
5
|
# @attr explanation [TD::Types::FormattedText, nil] Text that is shown when the user chooses an incorrect answer or
|
6
6
|
# taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll.
|
7
7
|
class PollType::Quiz < PollType
|
8
|
-
attribute :correct_option_id, TD::Types::Integer
|
8
|
+
attribute :correct_option_id, TD::Types::Coercible::Integer
|
9
9
|
attribute :explanation, TD::Types::FormattedText.optional.default(nil)
|
10
10
|
end
|
11
11
|
end
|
@@ -10,7 +10,7 @@ module TD::Types
|
|
10
10
|
# @attr minithumbnail [TD::Types::Minithumbnail, nil] User profile photo minithumbnail; may be null.
|
11
11
|
# @attr has_animation [Boolean] True, if the photo has animated variant.
|
12
12
|
class ProfilePhoto < Base
|
13
|
-
attribute :id, TD::Types::Integer
|
13
|
+
attribute :id, TD::Types::Coercible::Integer
|
14
14
|
attribute :small, TD::Types::File
|
15
15
|
attribute :big, TD::Types::File
|
16
16
|
attribute :minithumbnail, TD::Types::Minithumbnail.optional.default(nil)
|
data/lib/tdlib/types/proxy.rb
CHANGED
@@ -2,16 +2,16 @@ module TD::Types
|
|
2
2
|
# Contains information about a proxy server.
|
3
3
|
#
|
4
4
|
# @attr id [Integer] Unique identifier of the proxy.
|
5
|
-
# @attr server [String] Proxy server IP address.
|
5
|
+
# @attr server [TD::Types::String] Proxy server IP address.
|
6
6
|
# @attr port [Integer] Proxy server port.
|
7
7
|
# @attr last_used_date [Integer] Point in time (Unix timestamp) when the proxy was last used; 0 if never.
|
8
8
|
# @attr is_enabled [Boolean] True, if the proxy is enabled now.
|
9
9
|
# @attr type [TD::Types::ProxyType] Type of the proxy.
|
10
10
|
class Proxy < Base
|
11
|
-
attribute :id, TD::Types::Integer
|
11
|
+
attribute :id, TD::Types::Coercible::Integer
|
12
12
|
attribute :server, TD::Types::String
|
13
|
-
attribute :port, TD::Types::Integer
|
14
|
-
attribute :last_used_date, TD::Types::Integer
|
13
|
+
attribute :port, TD::Types::Coercible::Integer
|
14
|
+
attribute :last_used_date, TD::Types::Coercible::Integer
|
15
15
|
attribute :is_enabled, TD::Types::Bool
|
16
16
|
attribute :type, TD::Types::ProxyType
|
17
17
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A HTTP transparent proxy server.
|
3
3
|
#
|
4
|
-
# @attr username [String, nil] Username for logging in; may be empty.
|
5
|
-
# @attr password [String, nil] Password for logging in; may be empty.
|
4
|
+
# @attr username [TD::Types::String, nil] Username for logging in; may be empty.
|
5
|
+
# @attr password [TD::Types::String, nil] Password for logging in; may be empty.
|
6
6
|
# @attr http_only [Boolean] Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP
|
7
7
|
# connections via HTTP CONNECT method.
|
8
8
|
class ProxyType::Http < ProxyType
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# An MTProto proxy server.
|
3
3
|
#
|
4
|
-
# @attr secret [String] The proxy's secret in hexadecimal encoding.
|
4
|
+
# @attr secret [TD::Types::String] The proxy's secret in hexadecimal encoding.
|
5
5
|
class ProxyType::Mtproto < ProxyType
|
6
6
|
attribute :secret, TD::Types::String
|
7
7
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A SOCKS5 proxy server.
|
3
3
|
#
|
4
|
-
# @attr username [String, nil] Username for logging in; may be empty.
|
5
|
-
# @attr password [String, nil] Password for logging in; may be empty.
|
4
|
+
# @attr username [TD::Types::String, nil] Username for logging in; may be empty.
|
5
|
+
# @attr password [TD::Types::String, nil] Password for logging in; may be empty.
|
6
6
|
class ProxyType::Socks5 < ProxyType
|
7
7
|
attribute :username, TD::Types::String.optional.default(nil)
|
8
8
|
attribute :password, TD::Types::String.optional.default(nil)
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# An animation message (GIF-style)..
|
3
3
|
#
|
4
4
|
# @attr animation [TD::Types::Animation, nil] Message content; may be null.
|
5
|
-
# @attr caption [String] Animation caption.
|
5
|
+
# @attr caption [TD::Types::String] Animation caption.
|
6
6
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
7
7
|
class PushMessageContent::Animation < PushMessageContent
|
8
8
|
attribute :animation, TD::Types::Animation.optional.default(nil)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# New chat members were invited to a group.
|
3
3
|
#
|
4
|
-
# @attr member_name [String] Name of the added member.
|
4
|
+
# @attr member_name [TD::Types::String] Name of the added member.
|
5
5
|
# @attr is_current_user [Boolean] True, if the current user was added to the group.
|
6
6
|
# @attr is_returned [Boolean] True, if the user has returned to the group themself.
|
7
7
|
class PushMessageContent::ChatAddMembers < PushMessageContent
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A chat member was deleted.
|
3
3
|
#
|
4
|
-
# @attr member_name [String] Name of the deleted member.
|
4
|
+
# @attr member_name [TD::Types::String] Name of the deleted member.
|
5
5
|
# @attr is_current_user [Boolean] True, if the current user was deleted from the group.
|
6
6
|
# @attr is_left [Boolean] True, if the user has left the group themself.
|
7
7
|
class PushMessageContent::ChatDeleteMember < PushMessageContent
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A message with a user contact.
|
3
3
|
#
|
4
|
-
# @attr name [String] Contact's name.
|
4
|
+
# @attr name [TD::Types::String] Contact's name.
|
5
5
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
6
6
|
class PushMessageContent::Contact < PushMessageContent
|
7
7
|
attribute :name, TD::Types::String
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A message with a game.
|
3
3
|
#
|
4
|
-
# @attr title [String, nil] Game title, empty for pinned game message.
|
4
|
+
# @attr title [TD::Types::String, nil] Game title, empty for pinned game message.
|
5
5
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
6
6
|
class PushMessageContent::Game < PushMessageContent
|
7
7
|
attribute :title, TD::Types::String.optional.default(nil)
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A new high score was achieved in a game.
|
3
3
|
#
|
4
|
-
# @attr title [String, nil] Game title, empty for pinned message.
|
4
|
+
# @attr title [TD::Types::String, nil] Game title, empty for pinned message.
|
5
5
|
# @attr score [Integer] New score, 0 for pinned message.
|
6
6
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
7
7
|
class PushMessageContent::GameScore < PushMessageContent
|
8
8
|
attribute :title, TD::Types::String.optional.default(nil)
|
9
|
-
attribute :score, TD::Types::Integer
|
9
|
+
attribute :score, TD::Types::Coercible::Integer
|
10
10
|
attribute :is_pinned, TD::Types::Bool
|
11
11
|
end
|
12
12
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A message with an invoice from a bot.
|
3
3
|
#
|
4
|
-
# @attr price [String] Product price.
|
4
|
+
# @attr price [TD::Types::String] Product price.
|
5
5
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
6
6
|
class PushMessageContent::Invoice < PushMessageContent
|
7
7
|
attribute :price, TD::Types::String
|
@@ -7,7 +7,7 @@ module TD::Types
|
|
7
7
|
# @attr has_audios [Boolean] True, if the album has at least one audio file.
|
8
8
|
# @attr has_documents [Boolean] True, if the album has at least one document.
|
9
9
|
class PushMessageContent::MediaAlbum < PushMessageContent
|
10
|
-
attribute :total_count, TD::Types::Integer
|
10
|
+
attribute :total_count, TD::Types::Coercible::Integer
|
11
11
|
attribute :has_photos, TD::Types::Bool
|
12
12
|
attribute :has_videos, TD::Types::Bool
|
13
13
|
attribute :has_audios, TD::Types::Bool
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# A photo message.
|
3
3
|
#
|
4
4
|
# @attr photo [TD::Types::Photo, nil] Message content; may be null.
|
5
|
-
# @attr caption [String] Photo caption.
|
5
|
+
# @attr caption [TD::Types::String] Photo caption.
|
6
6
|
# @attr is_secret [Boolean] True, if the photo is secret.
|
7
7
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
8
8
|
class PushMessageContent::Photo < PushMessageContent
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A message with a poll.
|
3
3
|
#
|
4
|
-
# @attr question [String] Poll question.
|
4
|
+
# @attr question [TD::Types::String] Poll question.
|
5
5
|
# @attr is_regular [Boolean] True, if the poll is regular and not in quiz mode.
|
6
6
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
7
7
|
class PushMessageContent::Poll < PushMessageContent
|
@@ -2,7 +2,7 @@ module TD::Types
|
|
2
2
|
# A message with a sticker.
|
3
3
|
#
|
4
4
|
# @attr sticker [TD::Types::Sticker, nil] Message content; may be null.
|
5
|
-
# @attr emoji [String, nil] Emoji corresponding to the sticker; may be empty.
|
5
|
+
# @attr emoji [TD::Types::String, nil] Emoji corresponding to the sticker; may be empty.
|
6
6
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
7
7
|
class PushMessageContent::Sticker < PushMessageContent
|
8
8
|
attribute :sticker, TD::Types::Sticker.optional.default(nil)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A text message.
|
3
3
|
#
|
4
|
-
# @attr text [String] Message text.
|
4
|
+
# @attr text [TD::Types::String] Message text.
|
5
5
|
# @attr is_pinned [Boolean] True, if the message is a pinned message with the specified content.
|
6
6
|
class PushMessageContent::Text < PushMessageContent
|
7
7
|
attribute :text, TD::Types::String
|