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
@@ -1,13 +1,13 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a link to a file.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
5
|
-
# @attr title [String] Title of the resulting file.
|
6
|
-
# @attr description [String] Short description of the result, if known.
|
7
|
-
# @attr document_url [String] URL of the file.
|
8
|
-
# @attr mime_type [String] MIME type of the file content; only "application/pdf" and "application/zip" are
|
9
|
-
# allowed.
|
10
|
-
# @attr thumbnail_url [String] The URL of the file thumbnail, if it exists.
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
|
+
# @attr title [TD::Types::String] Title of the resulting file.
|
6
|
+
# @attr description [TD::Types::String] Short description of the result, if known.
|
7
|
+
# @attr document_url [TD::Types::String] URL of the file.
|
8
|
+
# @attr mime_type [TD::Types::String] MIME type of the file content; only "application/pdf" and "application/zip" are
|
9
|
+
# currently allowed.
|
10
|
+
# @attr thumbnail_url [TD::Types::String] The URL of the file thumbnail, if it exists.
|
11
11
|
# @attr thumbnail_width [Integer] Width of the thumbnail.
|
12
12
|
# @attr thumbnail_height [Integer] Height of the thumbnail.
|
13
13
|
# @attr reply_markup [TD::Types::ReplyMarkup] The message reply markup.
|
@@ -22,8 +22,8 @@ module TD::Types
|
|
22
22
|
attribute :document_url, TD::Types::String
|
23
23
|
attribute :mime_type, TD::Types::String
|
24
24
|
attribute :thumbnail_url, TD::Types::String
|
25
|
-
attribute :thumbnail_width, TD::Types::Integer
|
26
|
-
attribute :thumbnail_height, TD::Types::Integer
|
25
|
+
attribute :thumbnail_width, TD::Types::Coercible::Integer
|
26
|
+
attribute :thumbnail_height, TD::Types::Coercible::Integer
|
27
27
|
attribute :reply_markup, TD::Types::ReplyMarkup
|
28
28
|
attribute :input_message_content, TD::Types::InputMessageContent
|
29
29
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a game.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
5
|
-
# @attr game_short_name [String] Short name of the game.
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
|
+
# @attr game_short_name [TD::Types::String] Short name of the game.
|
6
6
|
# @attr reply_markup [TD::Types::ReplyMarkup] Message reply markup.
|
7
7
|
# Must be of type {TD::Types::ReplyMarkup::InlineKeyboard} or null.
|
8
8
|
class InputInlineQueryResult::Game < InputInlineQueryResult
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a point on the map.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
5
|
# @attr location [TD::Types::Location] Location result.
|
6
6
|
# @attr live_period [Integer] Amount of time relative to the message sent time until the location can be updated, in
|
7
7
|
# seconds.
|
8
|
-
# @attr title [String] Title of the result.
|
9
|
-
# @attr thumbnail_url [String] URL of the result thumbnail, if it exists.
|
8
|
+
# @attr title [TD::Types::String] Title of the result.
|
9
|
+
# @attr thumbnail_url [TD::Types::String] URL of the result thumbnail, if it exists.
|
10
10
|
# @attr thumbnail_width [Integer] Thumbnail width, if known.
|
11
11
|
# @attr thumbnail_height [Integer] Thumbnail height, if known.
|
12
12
|
# @attr reply_markup [TD::Types::ReplyMarkup] The message reply markup.
|
@@ -17,11 +17,11 @@ module TD::Types
|
|
17
17
|
class InputInlineQueryResult::Location < InputInlineQueryResult
|
18
18
|
attribute :id, TD::Types::String
|
19
19
|
attribute :location, TD::Types::Location
|
20
|
-
attribute :live_period, TD::Types::Integer
|
20
|
+
attribute :live_period, TD::Types::Coercible::Integer
|
21
21
|
attribute :title, TD::Types::String
|
22
22
|
attribute :thumbnail_url, TD::Types::String
|
23
|
-
attribute :thumbnail_width, TD::Types::Integer
|
24
|
-
attribute :thumbnail_height, TD::Types::Integer
|
23
|
+
attribute :thumbnail_width, TD::Types::Coercible::Integer
|
24
|
+
attribute :thumbnail_height, TD::Types::Coercible::Integer
|
25
25
|
attribute :reply_markup, TD::Types::ReplyMarkup
|
26
26
|
attribute :input_message_content, TD::Types::InputMessageContent
|
27
27
|
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents link to a JPEG image.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
5
|
-
# @attr title [String] Title of the result, if known.
|
6
|
-
# @attr description [String] A short description of the result, if known.
|
7
|
-
# @attr thumbnail_url [String] URL of the photo thumbnail, if it exists.
|
8
|
-
# @attr photo_url [String] The URL of the JPEG photo (photo size must not exceed 5MB).
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
|
+
# @attr title [TD::Types::String] Title of the result, if known.
|
6
|
+
# @attr description [TD::Types::String] A short description of the result, if known.
|
7
|
+
# @attr thumbnail_url [TD::Types::String] URL of the photo thumbnail, if it exists.
|
8
|
+
# @attr photo_url [TD::Types::String] The URL of the JPEG photo (photo size must not exceed 5MB).
|
9
9
|
# @attr photo_width [Integer] Width of the photo.
|
10
10
|
# @attr photo_height [Integer] Height of the photo.
|
11
11
|
# @attr reply_markup [TD::Types::ReplyMarkup] The message reply markup.
|
@@ -19,8 +19,8 @@ module TD::Types
|
|
19
19
|
attribute :description, TD::Types::String
|
20
20
|
attribute :thumbnail_url, TD::Types::String
|
21
21
|
attribute :photo_url, TD::Types::String
|
22
|
-
attribute :photo_width, TD::Types::Integer
|
23
|
-
attribute :photo_height, TD::Types::Integer
|
22
|
+
attribute :photo_width, TD::Types::Coercible::Integer
|
23
|
+
attribute :photo_height, TD::Types::Coercible::Integer
|
24
24
|
attribute :reply_markup, TD::Types::ReplyMarkup
|
25
25
|
attribute :input_message_content, TD::Types::InputMessageContent
|
26
26
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a link to a WEBP or TGS sticker.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
5
|
-
# @attr thumbnail_url [String] URL of the sticker thumbnail, if it exists.
|
6
|
-
# @attr sticker_url [String] The URL of the WEBP or TGS sticker (sticker file size must not exceed 5MB).
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
|
+
# @attr thumbnail_url [TD::Types::String] URL of the sticker thumbnail, if it exists.
|
6
|
+
# @attr sticker_url [TD::Types::String] The URL of the WEBP or TGS sticker (sticker file size must not exceed 5MB).
|
7
7
|
# @attr sticker_width [Integer] Width of the sticker.
|
8
8
|
# @attr sticker_height [Integer] Height of the sticker.
|
9
9
|
# @attr reply_markup [TD::Types::ReplyMarkup] The message reply markup.
|
@@ -15,8 +15,8 @@ module TD::Types
|
|
15
15
|
attribute :id, TD::Types::String
|
16
16
|
attribute :thumbnail_url, TD::Types::String
|
17
17
|
attribute :sticker_url, TD::Types::String
|
18
|
-
attribute :sticker_width, TD::Types::Integer
|
19
|
-
attribute :sticker_height, TD::Types::Integer
|
18
|
+
attribute :sticker_width, TD::Types::Coercible::Integer
|
19
|
+
attribute :sticker_height, TD::Types::Coercible::Integer
|
20
20
|
attribute :reply_markup, TD::Types::ReplyMarkup
|
21
21
|
attribute :input_message_content, TD::Types::InputMessageContent
|
22
22
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents information about a venue.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
5
|
# @attr venue [TD::Types::Venue] Venue result.
|
6
|
-
# @attr thumbnail_url [String] URL of the result thumbnail, if it exists.
|
6
|
+
# @attr thumbnail_url [TD::Types::String] URL of the result thumbnail, if it exists.
|
7
7
|
# @attr thumbnail_width [Integer] Thumbnail width, if known.
|
8
8
|
# @attr thumbnail_height [Integer] Thumbnail height, if known.
|
9
9
|
# @attr reply_markup [TD::Types::ReplyMarkup] The message reply markup.
|
@@ -15,8 +15,8 @@ module TD::Types
|
|
15
15
|
attribute :id, TD::Types::String
|
16
16
|
attribute :venue, TD::Types::Venue
|
17
17
|
attribute :thumbnail_url, TD::Types::String
|
18
|
-
attribute :thumbnail_width, TD::Types::Integer
|
19
|
-
attribute :thumbnail_height, TD::Types::Integer
|
18
|
+
attribute :thumbnail_width, TD::Types::Coercible::Integer
|
19
|
+
attribute :thumbnail_height, TD::Types::Coercible::Integer
|
20
20
|
attribute :reply_markup, TD::Types::ReplyMarkup
|
21
21
|
attribute :input_message_content, TD::Types::InputMessageContent
|
22
22
|
end
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a link to a page containing an embedded video player or a video file.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
5
|
-
# @attr title [String] Title of the result.
|
6
|
-
# @attr description [String] A short description of the result, if known.
|
7
|
-
# @attr thumbnail_url [String] The URL of the video thumbnail (JPEG), if it exists.
|
8
|
-
# @attr video_url [String] URL of the embedded video player or video file.
|
9
|
-
# @attr mime_type [String] MIME type of the content of the video URL, only "text/html" or "video/mp4" are
|
10
|
-
# supported.
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
|
+
# @attr title [TD::Types::String] Title of the result.
|
6
|
+
# @attr description [TD::Types::String] A short description of the result, if known.
|
7
|
+
# @attr thumbnail_url [TD::Types::String] The URL of the video thumbnail (JPEG), if it exists.
|
8
|
+
# @attr video_url [TD::Types::String] URL of the embedded video player or video file.
|
9
|
+
# @attr mime_type [TD::Types::String] MIME type of the content of the video URL, only "text/html" or "video/mp4" are
|
10
|
+
# currently supported.
|
11
11
|
# @attr video_width [Integer] Width of the video.
|
12
12
|
# @attr video_height [Integer] Height of the video.
|
13
13
|
# @attr video_duration [Integer] Video duration, in seconds.
|
@@ -23,9 +23,9 @@ module TD::Types
|
|
23
23
|
attribute :thumbnail_url, TD::Types::String
|
24
24
|
attribute :video_url, TD::Types::String
|
25
25
|
attribute :mime_type, TD::Types::String
|
26
|
-
attribute :video_width, TD::Types::Integer
|
27
|
-
attribute :video_height, TD::Types::Integer
|
28
|
-
attribute :video_duration, TD::Types::Integer
|
26
|
+
attribute :video_width, TD::Types::Coercible::Integer
|
27
|
+
attribute :video_height, TD::Types::Coercible::Integer
|
28
|
+
attribute :video_duration, TD::Types::Coercible::Integer
|
29
29
|
attribute :reply_markup, TD::Types::ReplyMarkup
|
30
30
|
attribute :input_message_content, TD::Types::InputMessageContent
|
31
31
|
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# Represents a link to an opus-encoded audio file within an OGG container, single channel audio.
|
3
3
|
#
|
4
|
-
# @attr id [String] Unique identifier of the query result.
|
5
|
-
# @attr title [String] Title of the voice note.
|
6
|
-
# @attr voice_note_url [String] The URL of the voice note file.
|
4
|
+
# @attr id [TD::Types::String] Unique identifier of the query result.
|
5
|
+
# @attr title [TD::Types::String] Title of the voice note.
|
6
|
+
# @attr voice_note_url [TD::Types::String] The URL of the voice note file.
|
7
7
|
# @attr voice_note_duration [Integer] Duration of the voice note, in seconds.
|
8
8
|
# @attr reply_markup [TD::Types::ReplyMarkup] The message reply markup.
|
9
9
|
# Must be of type {TD::Types::ReplyMarkup::InlineKeyboard} or null.
|
@@ -14,7 +14,7 @@ module TD::Types
|
|
14
14
|
attribute :id, TD::Types::String
|
15
15
|
attribute :title, TD::Types::String
|
16
16
|
attribute :voice_note_url, TD::Types::String
|
17
|
-
attribute :voice_note_duration, TD::Types::Integer
|
17
|
+
attribute :voice_note_duration, TD::Types::Coercible::Integer
|
18
18
|
attribute :reply_markup, TD::Types::ReplyMarkup
|
19
19
|
attribute :input_message_content, TD::Types::InputMessageContent
|
20
20
|
end
|
@@ -12,10 +12,10 @@ module TD::Types
|
|
12
12
|
class InputMessageContent::Animation < InputMessageContent
|
13
13
|
attribute :animation, TD::Types::InputFile
|
14
14
|
attribute :thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
15
|
-
attribute :added_sticker_file_ids, TD::Types::Array.of(TD::Types::Integer)
|
16
|
-
attribute :duration, TD::Types::Integer
|
17
|
-
attribute :width, TD::Types::Integer
|
18
|
-
attribute :height, TD::Types::Integer
|
15
|
+
attribute :added_sticker_file_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
16
|
+
attribute :duration, TD::Types::Coercible::Integer
|
17
|
+
attribute :width, TD::Types::Coercible::Integer
|
18
|
+
attribute :height, TD::Types::Coercible::Integer
|
19
19
|
attribute :caption, TD::Types::FormattedText
|
20
20
|
end
|
21
21
|
end
|
@@ -4,13 +4,13 @@ module TD::Types
|
|
4
4
|
# @attr audio [TD::Types::InputFile] Audio file to be sent.
|
5
5
|
# @attr album_cover_thumbnail [TD::Types::InputThumbnail, nil] Thumbnail of the cover for the album, if available.
|
6
6
|
# @attr duration [Integer] Duration of the audio, in seconds; may be replaced by the server.
|
7
|
-
# @attr title [String] Title of the audio; 0-64 characters; may be replaced by the server.
|
8
|
-
# @attr performer [String] Performer of the audio; 0-64 characters, may be replaced by the server.
|
7
|
+
# @attr title [TD::Types::String] Title of the audio; 0-64 characters; may be replaced by the server.
|
8
|
+
# @attr performer [TD::Types::String] Performer of the audio; 0-64 characters, may be replaced by the server.
|
9
9
|
# @attr caption [TD::Types::FormattedText] Audio caption; 0-GetOption("message_caption_length_max") characters.
|
10
10
|
class InputMessageContent::Audio < InputMessageContent
|
11
11
|
attribute :audio, TD::Types::InputFile
|
12
12
|
attribute :album_cover_thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
13
|
-
attribute :duration, TD::Types::Integer
|
13
|
+
attribute :duration, TD::Types::Coercible::Integer
|
14
14
|
attribute :title, TD::Types::String
|
15
15
|
attribute :performer, TD::Types::String
|
16
16
|
attribute :caption, TD::Types::FormattedText
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A dice message.
|
3
3
|
#
|
4
|
-
# @attr emoji [String] Emoji on which the dice throw animation is based.
|
4
|
+
# @attr emoji [TD::Types::String] Emoji on which the dice throw animation is based.
|
5
5
|
# @attr clear_draft [Boolean] True, if a chat message draft should be deleted.
|
6
6
|
class InputMessageContent::Dice < InputMessageContent
|
7
7
|
attribute :emoji, TD::Types::String
|
@@ -8,8 +8,8 @@ module TD::Types
|
|
8
8
|
# @attr copy_options [TD::Types::MessageCopyOptions] Options to be used to copy content of the message without a link
|
9
9
|
# to the original message.
|
10
10
|
class InputMessageContent::Forwarded < InputMessageContent
|
11
|
-
attribute :from_chat_id, TD::Types::Integer
|
12
|
-
attribute :message_id, TD::Types::Integer
|
11
|
+
attribute :from_chat_id, TD::Types::Coercible::Integer
|
12
|
+
attribute :message_id, TD::Types::Coercible::Integer
|
13
13
|
attribute :in_game_share, TD::Types::Bool
|
14
14
|
attribute :copy_options, TD::Types::MessageCopyOptions
|
15
15
|
end
|
@@ -2,9 +2,9 @@ module TD::Types
|
|
2
2
|
# A message with a game; not supported for channels or secret chats.
|
3
3
|
#
|
4
4
|
# @attr bot_user_id [Integer] User identifier of the bot that owns the game.
|
5
|
-
# @attr game_short_name [String] Short name of the game.
|
5
|
+
# @attr game_short_name [TD::Types::String] Short name of the game.
|
6
6
|
class InputMessageContent::Game < InputMessageContent
|
7
|
-
attribute :bot_user_id, TD::Types::Integer
|
7
|
+
attribute :bot_user_id, TD::Types::Coercible::Integer
|
8
8
|
attribute :game_short_name, TD::Types::String
|
9
9
|
end
|
10
10
|
end
|
@@ -2,26 +2,28 @@ module TD::Types
|
|
2
2
|
# A message with an invoice; can be used only by bots.
|
3
3
|
#
|
4
4
|
# @attr invoice [TD::Types::Invoice] Invoice.
|
5
|
-
# @attr title [String] Product title; 1-32 characters.
|
6
|
-
# @attr description [String] Product description; 0-255 characters.
|
7
|
-
# @attr photo_url [String, nil] Product photo URL; optional.
|
5
|
+
# @attr title [TD::Types::String] Product title; 1-32 characters.
|
6
|
+
# @attr description [TD::Types::String] Product description; 0-255 characters.
|
7
|
+
# @attr photo_url [TD::Types::String, nil] Product photo URL; optional.
|
8
8
|
# @attr photo_size [Integer] Product photo size.
|
9
9
|
# @attr photo_width [Integer] Product photo width.
|
10
10
|
# @attr photo_height [Integer] Product photo height.
|
11
11
|
# @attr payload [String] The invoice payload.
|
12
|
-
# @attr provider_token [String] Payment provider token.
|
13
|
-
# @attr provider_data [String] JSON-encoded data about the invoice, which will be shared with the payment
|
14
|
-
#
|
12
|
+
# @attr provider_token [TD::Types::String] Payment provider token.
|
13
|
+
# @attr provider_data [TD::Types::String] JSON-encoded data about the invoice, which will be shared with the payment
|
14
|
+
# provider.
|
15
|
+
# @attr start_parameter [TD::Types::String] Unique invoice bot deep link parameter for the generation of this
|
16
|
+
# invoice.
|
15
17
|
# If empty, it would be possible to pay directly from forwards of the invoice message.
|
16
18
|
class InputMessageContent::Invoice < InputMessageContent
|
17
19
|
attribute :invoice, TD::Types::Invoice
|
18
20
|
attribute :title, TD::Types::String
|
19
21
|
attribute :description, TD::Types::String
|
20
22
|
attribute :photo_url, TD::Types::String.optional.default(nil)
|
21
|
-
attribute :photo_size, TD::Types::Integer
|
22
|
-
attribute :photo_width, TD::Types::Integer
|
23
|
-
attribute :photo_height, TD::Types::Integer
|
24
|
-
attribute :payload, TD::Types::String
|
23
|
+
attribute :photo_size, TD::Types::Coercible::Integer
|
24
|
+
attribute :photo_width, TD::Types::Coercible::Integer
|
25
|
+
attribute :photo_height, TD::Types::Coercible::Integer
|
26
|
+
attribute :payload, TD::Types::Coercible::String
|
25
27
|
attribute :provider_token, TD::Types::String
|
26
28
|
attribute :provider_data, TD::Types::String
|
27
29
|
attribute :start_parameter, TD::Types::String
|
@@ -12,8 +12,8 @@ module TD::Types
|
|
12
12
|
# Can't be enabled in channels and Saved Messages.
|
13
13
|
class InputMessageContent::Location < InputMessageContent
|
14
14
|
attribute :location, TD::Types::Location
|
15
|
-
attribute :live_period, TD::Types::Integer
|
16
|
-
attribute :heading, TD::Types::Integer
|
17
|
-
attribute :proximity_alert_radius, TD::Types::Integer
|
15
|
+
attribute :live_period, TD::Types::Coercible::Integer
|
16
|
+
attribute :heading, TD::Types::Coercible::Integer
|
17
|
+
attribute :proximity_alert_radius, TD::Types::Coercible::Integer
|
18
18
|
end
|
19
19
|
end
|
@@ -13,10 +13,10 @@ module TD::Types
|
|
13
13
|
class InputMessageContent::Photo < InputMessageContent
|
14
14
|
attribute :photo, TD::Types::InputFile
|
15
15
|
attribute :thumbnail, TD::Types::InputThumbnail
|
16
|
-
attribute :added_sticker_file_ids, TD::Types::Array.of(TD::Types::Integer)
|
17
|
-
attribute :width, TD::Types::Integer
|
18
|
-
attribute :height, TD::Types::Integer
|
16
|
+
attribute :added_sticker_file_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
17
|
+
attribute :width, TD::Types::Coercible::Integer
|
18
|
+
attribute :height, TD::Types::Coercible::Integer
|
19
19
|
attribute :caption, TD::Types::FormattedText
|
20
|
-
attribute :ttl, TD::Types::Integer
|
20
|
+
attribute :ttl, TD::Types::Coercible::Integer
|
21
21
|
end
|
22
22
|
end
|
@@ -3,8 +3,8 @@ module TD::Types
|
|
3
3
|
# Polls can't be sent to secret chats.
|
4
4
|
# Polls can be sent only to a private chat with a bot.
|
5
5
|
#
|
6
|
-
# @attr question [String] Poll question; 1-255 characters (up to 300 characters for bots).
|
7
|
-
# @attr options [Array<String>] List of poll answer options, 2-10 strings 1-100 characters each.
|
6
|
+
# @attr question [TD::Types::String] Poll question; 1-255 characters (up to 300 characters for bots).
|
7
|
+
# @attr options [Array<TD::Types::String>] List of poll answer options, 2-10 strings 1-100 characters each.
|
8
8
|
# @attr is_anonymous [Boolean] True, if the poll voters are anonymous.
|
9
9
|
# Non-anonymous polls can't be sent or forwarded to channels.
|
10
10
|
# @attr type [TD::Types::PollType] Type of the poll.
|
@@ -17,8 +17,8 @@ module TD::Types
|
|
17
17
|
attribute :options, TD::Types::Array.of(TD::Types::String)
|
18
18
|
attribute :is_anonymous, TD::Types::Bool
|
19
19
|
attribute :type, TD::Types::PollType
|
20
|
-
attribute :open_period, TD::Types::Integer
|
21
|
-
attribute :close_date, TD::Types::Integer
|
20
|
+
attribute :open_period, TD::Types::Coercible::Integer
|
21
|
+
attribute :close_date, TD::Types::Coercible::Integer
|
22
22
|
attribute :is_closed, TD::Types::Bool
|
23
23
|
end
|
24
24
|
end
|
@@ -5,12 +5,12 @@ module TD::Types
|
|
5
5
|
# @attr thumbnail [TD::Types::InputThumbnail, nil] Sticker thumbnail, if available.
|
6
6
|
# @attr width [Integer] Sticker width.
|
7
7
|
# @attr height [Integer] Sticker height.
|
8
|
-
# @attr emoji [String] Emoji used to choose the sticker.
|
8
|
+
# @attr emoji [TD::Types::String] Emoji used to choose the sticker.
|
9
9
|
class InputMessageContent::Sticker < InputMessageContent
|
10
10
|
attribute :sticker, TD::Types::InputFile
|
11
11
|
attribute :thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
12
|
-
attribute :width, TD::Types::Integer
|
13
|
-
attribute :height, TD::Types::Integer
|
12
|
+
attribute :width, TD::Types::Coercible::Integer
|
13
|
+
attribute :height, TD::Types::Coercible::Integer
|
14
14
|
attribute :emoji, TD::Types::String
|
15
15
|
end
|
16
16
|
end
|
@@ -14,12 +14,12 @@ module TD::Types
|
|
14
14
|
class InputMessageContent::Video < InputMessageContent
|
15
15
|
attribute :video, TD::Types::InputFile
|
16
16
|
attribute :thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
17
|
-
attribute :added_sticker_file_ids, TD::Types::Array.of(TD::Types::Integer)
|
18
|
-
attribute :duration, TD::Types::Integer
|
19
|
-
attribute :width, TD::Types::Integer
|
20
|
-
attribute :height, TD::Types::Integer
|
17
|
+
attribute :added_sticker_file_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
|
18
|
+
attribute :duration, TD::Types::Coercible::Integer
|
19
|
+
attribute :width, TD::Types::Coercible::Integer
|
20
|
+
attribute :height, TD::Types::Coercible::Integer
|
21
21
|
attribute :supports_streaming, TD::Types::Bool
|
22
22
|
attribute :caption, TD::Types::FormattedText
|
23
|
-
attribute :ttl, TD::Types::Integer
|
23
|
+
attribute :ttl, TD::Types::Coercible::Integer
|
24
24
|
end
|
25
25
|
end
|
@@ -8,7 +8,7 @@ module TD::Types
|
|
8
8
|
class InputMessageContent::VideoNote < InputMessageContent
|
9
9
|
attribute :video_note, TD::Types::InputFile
|
10
10
|
attribute :thumbnail, TD::Types::InputThumbnail.optional.default(nil)
|
11
|
-
attribute :duration, TD::Types::Integer
|
12
|
-
attribute :length, TD::Types::Integer
|
11
|
+
attribute :duration, TD::Types::Coercible::Integer
|
12
|
+
attribute :length, TD::Types::Coercible::Integer
|
13
13
|
end
|
14
14
|
end
|
@@ -7,8 +7,8 @@ module TD::Types
|
|
7
7
|
# @attr caption [TD::Types::FormattedText] Voice note caption; 0-GetOption("message_caption_length_max") characters.
|
8
8
|
class InputMessageContent::VoiceNote < InputMessageContent
|
9
9
|
attribute :voice_note, TD::Types::InputFile
|
10
|
-
attribute :duration, TD::Types::Integer
|
11
|
-
attribute :waveform, TD::Types::String
|
10
|
+
attribute :duration, TD::Types::Coercible::Integer
|
11
|
+
attribute :waveform, TD::Types::Coercible::String
|
12
12
|
attribute :caption, TD::Types::FormattedText
|
13
13
|
end
|
14
14
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A Telegram Passport element to be saved containing the user's email address.
|
3
3
|
#
|
4
|
-
# @attr email_address [String] The email address to be saved.
|
4
|
+
# @attr email_address [TD::Types::String] The email address to be saved.
|
5
5
|
class InputPassportElement::EmailAddress < InputPassportElement
|
6
6
|
attribute :email_address, TD::Types::String
|
7
7
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module TD::Types
|
2
2
|
# A Telegram Passport element to be saved containing the user's phone number.
|
3
3
|
#
|
4
|
-
# @attr phone_number [String] The phone number to be saved.
|
4
|
+
# @attr phone_number [TD::Types::String] The phone number to be saved.
|
5
5
|
class InputPassportElement::PhoneNumber < InputPassportElement
|
6
6
|
attribute :phone_number, TD::Types::String
|
7
7
|
end
|