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.
Files changed (466) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/bin/parser +6 -6
  4. data/lib/tdlib/client_methods.rb +171 -168
  5. data/lib/tdlib/types/account_ttl.rb +1 -1
  6. data/lib/tdlib/types/address.rb +6 -6
  7. data/lib/tdlib/types/animated_chat_photo.rb +2 -2
  8. data/lib/tdlib/types/animation.rb +5 -5
  9. data/lib/tdlib/types/audio.rb +5 -5
  10. data/lib/tdlib/types/authentication_code_info.rb +2 -2
  11. data/lib/tdlib/types/authentication_code_type/call.rb +1 -1
  12. data/lib/tdlib/types/authentication_code_type/flash_call.rb +1 -1
  13. data/lib/tdlib/types/authentication_code_type/sms.rb +1 -1
  14. data/lib/tdlib/types/authentication_code_type/telegram_message.rb +1 -1
  15. data/lib/tdlib/types/authorization_state/wait_other_device_confirmation.rb +1 -1
  16. data/lib/tdlib/types/authorization_state/wait_password.rb +3 -3
  17. data/lib/tdlib/types/auto_download_settings.rb +4 -4
  18. data/lib/tdlib/types/background.rb +2 -2
  19. data/lib/tdlib/types/background_fill/gradient.rb +3 -3
  20. data/lib/tdlib/types/background_fill/solid.rb +1 -1
  21. data/lib/tdlib/types/background_type/pattern.rb +1 -1
  22. data/lib/tdlib/types/bank_card_action_open_url.rb +2 -2
  23. data/lib/tdlib/types/bank_card_info.rb +1 -1
  24. data/lib/tdlib/types/basic_group.rb +3 -3
  25. data/lib/tdlib/types/basic_group_full_info.rb +2 -2
  26. data/lib/tdlib/types/bot_command.rb +2 -2
  27. data/lib/tdlib/types/bot_info.rb +1 -1
  28. data/lib/tdlib/types/call.rb +2 -2
  29. data/lib/tdlib/types/call_id.rb +1 -1
  30. data/lib/tdlib/types/call_protocol.rb +3 -3
  31. data/lib/tdlib/types/call_server.rb +4 -4
  32. data/lib/tdlib/types/call_server_type/telegram_reflector.rb +1 -1
  33. data/lib/tdlib/types/call_server_type/webrtc.rb +2 -2
  34. data/lib/tdlib/types/call_state/ready.rb +3 -3
  35. data/lib/tdlib/types/callback_query_answer.rb +2 -2
  36. data/lib/tdlib/types/callback_query_payload/data.rb +1 -1
  37. data/lib/tdlib/types/callback_query_payload/data_with_password.rb +2 -2
  38. data/lib/tdlib/types/callback_query_payload/game.rb +1 -1
  39. data/lib/tdlib/types/can_transfer_ownership_result/password_too_fresh.rb +1 -1
  40. data/lib/tdlib/types/can_transfer_ownership_result/session_too_fresh.rb +1 -1
  41. data/lib/tdlib/types/chat.rb +9 -9
  42. data/lib/tdlib/types/chat_action/uploading_document.rb +1 -1
  43. data/lib/tdlib/types/chat_action/uploading_photo.rb +1 -1
  44. data/lib/tdlib/types/chat_action/uploading_video.rb +1 -1
  45. data/lib/tdlib/types/chat_action/uploading_video_note.rb +1 -1
  46. data/lib/tdlib/types/chat_action/uploading_voice_note.rb +1 -1
  47. data/lib/tdlib/types/chat_action_bar/report_add_block.rb +1 -1
  48. data/lib/tdlib/types/chat_administrator.rb +2 -2
  49. data/lib/tdlib/types/chat_event.rb +3 -3
  50. data/lib/tdlib/types/chat_event_action/description_changed.rb +2 -2
  51. data/lib/tdlib/types/chat_event_action/linked_chat_changed.rb +2 -2
  52. data/lib/tdlib/types/chat_event_action/member_invited.rb +1 -1
  53. data/lib/tdlib/types/chat_event_action/member_promoted.rb +1 -1
  54. data/lib/tdlib/types/chat_event_action/message_ttl_setting_changed.rb +2 -2
  55. data/lib/tdlib/types/chat_event_action/slow_mode_delay_changed.rb +2 -2
  56. data/lib/tdlib/types/chat_event_action/sticker_set_changed.rb +2 -2
  57. data/lib/tdlib/types/chat_event_action/title_changed.rb +2 -2
  58. data/lib/tdlib/types/chat_event_action/username_changed.rb +2 -2
  59. data/lib/tdlib/types/chat_event_action/voice_chat_created.rb +1 -1
  60. data/lib/tdlib/types/chat_event_action/voice_chat_discarded.rb +1 -1
  61. data/lib/tdlib/types/chat_event_action/voice_chat_participant_volume_level_changed.rb +1 -1
  62. data/lib/tdlib/types/chat_filter.rb +5 -5
  63. data/lib/tdlib/types/chat_filter_info.rb +3 -3
  64. data/lib/tdlib/types/chat_invite_link.rb +7 -7
  65. data/lib/tdlib/types/chat_invite_link_count.rb +3 -3
  66. data/lib/tdlib/types/chat_invite_link_info.rb +5 -5
  67. data/lib/tdlib/types/chat_invite_link_member.rb +2 -2
  68. data/lib/tdlib/types/chat_invite_link_members.rb +1 -1
  69. data/lib/tdlib/types/chat_invite_links.rb +1 -1
  70. data/lib/tdlib/types/chat_list/filter.rb +1 -1
  71. data/lib/tdlib/types/chat_location.rb +1 -1
  72. data/lib/tdlib/types/chat_member.rb +2 -2
  73. data/lib/tdlib/types/chat_member_status/administrator.rb +2 -2
  74. data/lib/tdlib/types/chat_member_status/banned.rb +1 -1
  75. data/lib/tdlib/types/chat_member_status/creator.rb +2 -2
  76. data/lib/tdlib/types/chat_member_status/restricted.rb +1 -1
  77. data/lib/tdlib/types/chat_members.rb +1 -1
  78. data/lib/tdlib/types/chat_members_filter/mention.rb +1 -1
  79. data/lib/tdlib/types/chat_nearby.rb +2 -2
  80. data/lib/tdlib/types/chat_notification_settings.rb +2 -2
  81. data/lib/tdlib/types/chat_photo.rb +2 -2
  82. data/lib/tdlib/types/chat_photos.rb +1 -1
  83. data/lib/tdlib/types/chat_position.rb +1 -1
  84. data/lib/tdlib/types/chat_source/public_service_announcement.rb +2 -2
  85. data/lib/tdlib/types/chat_statistics/channel.rb +1 -1
  86. data/lib/tdlib/types/chat_statistics_administrator_actions_info.rb +4 -4
  87. data/lib/tdlib/types/chat_statistics_inviter_info.rb +2 -2
  88. data/lib/tdlib/types/chat_statistics_message_interaction_info.rb +3 -3
  89. data/lib/tdlib/types/chat_statistics_message_sender_info.rb +3 -3
  90. data/lib/tdlib/types/chat_type/basic_group.rb +1 -1
  91. data/lib/tdlib/types/chat_type/private.rb +1 -1
  92. data/lib/tdlib/types/chat_type/secret.rb +2 -2
  93. data/lib/tdlib/types/chat_type/supergroup.rb +1 -1
  94. data/lib/tdlib/types/chats.rb +2 -2
  95. data/lib/tdlib/types/connected_website.rb +10 -10
  96. data/lib/tdlib/types/contact.rb +5 -5
  97. data/lib/tdlib/types/count.rb +1 -1
  98. data/lib/tdlib/types/country_info.rb +4 -4
  99. data/lib/tdlib/types/custom_request_result.rb +1 -1
  100. data/lib/tdlib/types/database_statistics.rb +1 -1
  101. data/lib/tdlib/types/date.rb +3 -3
  102. data/lib/tdlib/types/date_range.rb +2 -2
  103. data/lib/tdlib/types/dated_file.rb +1 -1
  104. data/lib/tdlib/types/device_token/apple_push.rb +1 -1
  105. data/lib/tdlib/types/device_token/apple_push_vo_ip.rb +1 -1
  106. data/lib/tdlib/types/device_token/black_berry_push.rb +1 -1
  107. data/lib/tdlib/types/device_token/firebase_cloud_messaging.rb +1 -1
  108. data/lib/tdlib/types/device_token/microsoft_push.rb +1 -1
  109. data/lib/tdlib/types/device_token/microsoft_push_vo_ip.rb +1 -1
  110. data/lib/tdlib/types/device_token/simple_push.rb +2 -2
  111. data/lib/tdlib/types/device_token/tizen_push.rb +1 -1
  112. data/lib/tdlib/types/device_token/ubuntu_push.rb +1 -1
  113. data/lib/tdlib/types/device_token/web_push.rb +4 -4
  114. data/lib/tdlib/types/device_token/windows_push.rb +2 -2
  115. data/lib/tdlib/types/document.rb +2 -2
  116. data/lib/tdlib/types/draft_message.rb +2 -2
  117. data/lib/tdlib/types/email_address_authentication_code_info.rb +3 -2
  118. data/lib/tdlib/types/emojis.rb +1 -1
  119. data/lib/tdlib/types/encrypted_credentials.rb +3 -3
  120. data/lib/tdlib/types/encrypted_passport_element.rb +3 -3
  121. data/lib/tdlib/types/error.rb +2 -2
  122. data/lib/tdlib/types/file.rb +3 -3
  123. data/lib/tdlib/types/file_part.rb +1 -1
  124. data/lib/tdlib/types/formatted_text.rb +1 -1
  125. data/lib/tdlib/types/found_messages.rb +2 -2
  126. data/lib/tdlib/types/game.rb +4 -4
  127. data/lib/tdlib/types/game_high_score.rb +3 -3
  128. data/lib/tdlib/types/group_call.rb +6 -6
  129. data/lib/tdlib/types/group_call_id.rb +1 -1
  130. data/lib/tdlib/types/group_call_join_response_candidate.rb +13 -13
  131. data/lib/tdlib/types/group_call_participant.rb +4 -4
  132. data/lib/tdlib/types/group_call_payload.rb +2 -2
  133. data/lib/tdlib/types/group_call_payload_fingerprint.rb +3 -3
  134. data/lib/tdlib/types/hashtags.rb +1 -1
  135. data/lib/tdlib/types/http_url.rb +1 -1
  136. data/lib/tdlib/types/identity_document.rb +1 -1
  137. data/lib/tdlib/types/imported_contacts.rb +2 -2
  138. data/lib/tdlib/types/inline_keyboard_button.rb +1 -1
  139. data/lib/tdlib/types/inline_keyboard_button_type/callback.rb +1 -1
  140. data/lib/tdlib/types/inline_keyboard_button_type/callback_with_password.rb +1 -1
  141. data/lib/tdlib/types/inline_keyboard_button_type/login_url.rb +3 -3
  142. data/lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb +1 -1
  143. data/lib/tdlib/types/inline_keyboard_button_type/url.rb +1 -1
  144. data/lib/tdlib/types/inline_query_result/animation.rb +2 -2
  145. data/lib/tdlib/types/inline_query_result/article.rb +4 -4
  146. data/lib/tdlib/types/inline_query_result/audio.rb +1 -1
  147. data/lib/tdlib/types/inline_query_result/contact.rb +1 -1
  148. data/lib/tdlib/types/inline_query_result/document.rb +3 -3
  149. data/lib/tdlib/types/inline_query_result/game.rb +1 -1
  150. data/lib/tdlib/types/inline_query_result/location.rb +2 -2
  151. data/lib/tdlib/types/inline_query_result/photo.rb +3 -3
  152. data/lib/tdlib/types/inline_query_result/sticker.rb +1 -1
  153. data/lib/tdlib/types/inline_query_result/venue.rb +1 -1
  154. data/lib/tdlib/types/inline_query_result/video.rb +3 -3
  155. data/lib/tdlib/types/inline_query_result/voice_note.rb +2 -2
  156. data/lib/tdlib/types/inline_query_results.rb +5 -5
  157. data/lib/tdlib/types/input_background/remote.rb +1 -1
  158. data/lib/tdlib/types/input_chat_photo/animation.rb +1 -1
  159. data/lib/tdlib/types/input_chat_photo/previous.rb +1 -1
  160. data/lib/tdlib/types/input_credentials/apple_pay.rb +1 -1
  161. data/lib/tdlib/types/input_credentials/google_pay.rb +1 -1
  162. data/lib/tdlib/types/input_credentials/new.rb +1 -1
  163. data/lib/tdlib/types/input_credentials/saved.rb +1 -1
  164. data/lib/tdlib/types/input_file/generated.rb +5 -5
  165. data/lib/tdlib/types/input_file/id.rb +1 -1
  166. data/lib/tdlib/types/input_file/local.rb +1 -1
  167. data/lib/tdlib/types/input_file/remote.rb +1 -1
  168. data/lib/tdlib/types/input_identity_document.rb +1 -1
  169. data/lib/tdlib/types/input_inline_query_result/animation.rb +9 -9
  170. data/lib/tdlib/types/input_inline_query_result/article.rb +7 -7
  171. data/lib/tdlib/types/input_inline_query_result/audio.rb +5 -5
  172. data/lib/tdlib/types/input_inline_query_result/contact.rb +4 -4
  173. data/lib/tdlib/types/input_inline_query_result/document.rb +9 -9
  174. data/lib/tdlib/types/input_inline_query_result/game.rb +2 -2
  175. data/lib/tdlib/types/input_inline_query_result/location.rb +6 -6
  176. data/lib/tdlib/types/input_inline_query_result/photo.rb +7 -7
  177. data/lib/tdlib/types/input_inline_query_result/sticker.rb +5 -5
  178. data/lib/tdlib/types/input_inline_query_result/venue.rb +4 -4
  179. data/lib/tdlib/types/input_inline_query_result/video.rb +10 -10
  180. data/lib/tdlib/types/input_inline_query_result/voice_note.rb +4 -4
  181. data/lib/tdlib/types/input_message_content/animation.rb +4 -4
  182. data/lib/tdlib/types/input_message_content/audio.rb +3 -3
  183. data/lib/tdlib/types/input_message_content/dice.rb +1 -1
  184. data/lib/tdlib/types/input_message_content/forwarded.rb +2 -2
  185. data/lib/tdlib/types/input_message_content/game.rb +2 -2
  186. data/lib/tdlib/types/input_message_content/invoice.rb +12 -10
  187. data/lib/tdlib/types/input_message_content/location.rb +3 -3
  188. data/lib/tdlib/types/input_message_content/photo.rb +4 -4
  189. data/lib/tdlib/types/input_message_content/poll.rb +4 -4
  190. data/lib/tdlib/types/input_message_content/sticker.rb +3 -3
  191. data/lib/tdlib/types/input_message_content/video.rb +5 -5
  192. data/lib/tdlib/types/input_message_content/video_note.rb +2 -2
  193. data/lib/tdlib/types/input_message_content/voice_note.rb +2 -2
  194. data/lib/tdlib/types/input_passport_element/email_address.rb +1 -1
  195. data/lib/tdlib/types/input_passport_element/phone_number.rb +1 -1
  196. data/lib/tdlib/types/input_passport_element_error.rb +1 -1
  197. data/lib/tdlib/types/input_passport_element_error_source/data_field.rb +2 -2
  198. data/lib/tdlib/types/input_passport_element_error_source/file.rb +1 -1
  199. data/lib/tdlib/types/input_passport_element_error_source/files.rb +1 -1
  200. data/lib/tdlib/types/input_passport_element_error_source/front_side.rb +1 -1
  201. data/lib/tdlib/types/input_passport_element_error_source/reverse_side.rb +1 -1
  202. data/lib/tdlib/types/input_passport_element_error_source/selfie.rb +1 -1
  203. data/lib/tdlib/types/input_passport_element_error_source/translation_file.rb +1 -1
  204. data/lib/tdlib/types/input_passport_element_error_source/translation_files.rb +1 -1
  205. data/lib/tdlib/types/input_passport_element_error_source/unspecified.rb +1 -1
  206. data/lib/tdlib/types/input_sticker/animated.rb +1 -1
  207. data/lib/tdlib/types/input_sticker/static.rb +1 -1
  208. data/lib/tdlib/types/input_thumbnail.rb +2 -2
  209. data/lib/tdlib/types/invoice.rb +3 -3
  210. data/lib/tdlib/types/json_object_member.rb +1 -1
  211. data/lib/tdlib/types/json_value/number.rb +1 -1
  212. data/lib/tdlib/types/json_value/string.rb +1 -1
  213. data/lib/tdlib/types/keyboard_button.rb +1 -1
  214. data/lib/tdlib/types/labeled_price_part.rb +2 -2
  215. data/lib/tdlib/types/language_pack_info.rb +10 -9
  216. data/lib/tdlib/types/language_pack_string.rb +1 -1
  217. data/lib/tdlib/types/language_pack_string_value/ordinary.rb +1 -1
  218. data/lib/tdlib/types/language_pack_string_value/pluralized.rb +6 -6
  219. data/lib/tdlib/types/local_file.rb +4 -4
  220. data/lib/tdlib/types/location.rb +3 -3
  221. data/lib/tdlib/types/log_stream/file.rb +2 -2
  222. data/lib/tdlib/types/log_tags.rb +1 -1
  223. data/lib/tdlib/types/log_verbosity_level.rb +1 -1
  224. data/lib/tdlib/types/login_url_info/open.rb +1 -1
  225. data/lib/tdlib/types/login_url_info/request_confirmation.rb +3 -3
  226. data/lib/tdlib/types/mask_position.rb +3 -3
  227. data/lib/tdlib/types/message.rb +15 -14
  228. data/lib/tdlib/types/message_content/basic_group_chat_create.rb +2 -2
  229. data/lib/tdlib/types/message_content/call.rb +1 -1
  230. data/lib/tdlib/types/message_content/chat_add_members.rb +1 -1
  231. data/lib/tdlib/types/message_content/chat_change_title.rb +1 -1
  232. data/lib/tdlib/types/message_content/chat_delete_member.rb +1 -1
  233. data/lib/tdlib/types/message_content/chat_set_ttl.rb +1 -1
  234. data/lib/tdlib/types/message_content/chat_upgrade_from.rb +2 -2
  235. data/lib/tdlib/types/message_content/chat_upgrade_to.rb +1 -1
  236. data/lib/tdlib/types/message_content/custom_service_action.rb +1 -1
  237. data/lib/tdlib/types/message_content/dice.rb +3 -3
  238. data/lib/tdlib/types/message_content/game_score.rb +3 -3
  239. data/lib/tdlib/types/message_content/invite_voice_chat_participants.rb +2 -2
  240. data/lib/tdlib/types/message_content/invoice.rb +6 -6
  241. data/lib/tdlib/types/message_content/location.rb +4 -4
  242. data/lib/tdlib/types/message_content/payment_successful.rb +4 -4
  243. data/lib/tdlib/types/message_content/payment_successful_bot.rb +7 -7
  244. data/lib/tdlib/types/message_content/pin_message.rb +1 -1
  245. data/lib/tdlib/types/message_content/proximity_alert_triggered.rb +1 -1
  246. data/lib/tdlib/types/message_content/supergroup_chat_create.rb +1 -1
  247. data/lib/tdlib/types/message_content/voice_chat_ended.rb +1 -1
  248. data/lib/tdlib/types/message_content/voice_chat_scheduled.rb +2 -2
  249. data/lib/tdlib/types/message_content/voice_chat_started.rb +1 -1
  250. data/lib/tdlib/types/message_content/website_connected.rb +1 -1
  251. data/lib/tdlib/types/message_file_type/group.rb +1 -1
  252. data/lib/tdlib/types/message_file_type/private.rb +1 -1
  253. data/lib/tdlib/types/message_forward_info.rb +5 -5
  254. data/lib/tdlib/types/message_forward_origin/channel.rb +3 -3
  255. data/lib/tdlib/types/message_forward_origin/chat.rb +2 -2
  256. data/lib/tdlib/types/message_forward_origin/hidden_user.rb +1 -1
  257. data/lib/tdlib/types/message_forward_origin/message_import.rb +1 -1
  258. data/lib/tdlib/types/message_forward_origin/user.rb +1 -1
  259. data/lib/tdlib/types/message_interaction_info.rb +2 -2
  260. data/lib/tdlib/types/message_link.rb +1 -1
  261. data/lib/tdlib/types/message_link_info.rb +1 -1
  262. data/lib/tdlib/types/message_reply_info.rb +4 -4
  263. data/lib/tdlib/types/message_scheduling_state/send_at_date.rb +1 -1
  264. data/lib/tdlib/types/message_sender/chat.rb +1 -1
  265. data/lib/tdlib/types/message_sender/user.rb +1 -1
  266. data/lib/tdlib/types/message_senders.rb +1 -1
  267. data/lib/tdlib/types/message_sending_state/failed.rb +3 -3
  268. data/lib/tdlib/types/message_thread_info.rb +2 -2
  269. data/lib/tdlib/types/messages.rb +1 -1
  270. data/lib/tdlib/types/minithumbnail.rb +3 -3
  271. data/lib/tdlib/types/network_statistics.rb +1 -1
  272. data/lib/tdlib/types/network_statistics_entry/call.rb +3 -3
  273. data/lib/tdlib/types/network_statistics_entry/file.rb +2 -2
  274. data/lib/tdlib/types/notification.rb +2 -2
  275. data/lib/tdlib/types/notification_group.rb +3 -3
  276. data/lib/tdlib/types/notification_type/new_call.rb +1 -1
  277. data/lib/tdlib/types/notification_type/new_push_message.rb +2 -2
  278. data/lib/tdlib/types/option_value/integer.rb +1 -1
  279. data/lib/tdlib/types/option_value/string.rb +1 -1
  280. data/lib/tdlib/types/order_info.rb +3 -3
  281. data/lib/tdlib/types/page_block/anchor.rb +1 -1
  282. data/lib/tdlib/types/page_block/author_date.rb +1 -1
  283. data/lib/tdlib/types/page_block/chat_link.rb +2 -2
  284. data/lib/tdlib/types/page_block/embedded.rb +4 -4
  285. data/lib/tdlib/types/page_block/embedded_post.rb +3 -3
  286. data/lib/tdlib/types/page_block/map.rb +3 -3
  287. data/lib/tdlib/types/page_block/photo.rb +1 -1
  288. data/lib/tdlib/types/page_block/preformatted.rb +1 -1
  289. data/lib/tdlib/types/page_block_list_item.rb +1 -1
  290. data/lib/tdlib/types/page_block_related_article.rb +5 -5
  291. data/lib/tdlib/types/page_block_table_cell.rb +2 -2
  292. data/lib/tdlib/types/passport_authorization_form.rb +2 -2
  293. data/lib/tdlib/types/passport_element/email_address.rb +1 -1
  294. data/lib/tdlib/types/passport_element/phone_number.rb +1 -1
  295. data/lib/tdlib/types/passport_element_error.rb +1 -1
  296. data/lib/tdlib/types/passport_element_error_source/data_field.rb +1 -1
  297. data/lib/tdlib/types/passport_element_error_source/file.rb +1 -1
  298. data/lib/tdlib/types/passport_element_error_source/translation_file.rb +1 -1
  299. data/lib/tdlib/types/password_state.rb +1 -1
  300. data/lib/tdlib/types/payment_form.rb +4 -4
  301. data/lib/tdlib/types/payment_form_theme.rb +6 -6
  302. data/lib/tdlib/types/payment_receipt.rb +7 -7
  303. data/lib/tdlib/types/payment_result.rb +1 -1
  304. data/lib/tdlib/types/payments_provider_stripe.rb +1 -1
  305. data/lib/tdlib/types/personal_details.rb +10 -9
  306. data/lib/tdlib/types/phone_number_info.rb +4 -3
  307. data/lib/tdlib/types/photo_size.rb +4 -4
  308. data/lib/tdlib/types/point.rb +2 -2
  309. data/lib/tdlib/types/poll.rb +6 -6
  310. data/lib/tdlib/types/poll_option.rb +3 -3
  311. data/lib/tdlib/types/poll_type/quiz.rb +1 -1
  312. data/lib/tdlib/types/profile_photo.rb +1 -1
  313. data/lib/tdlib/types/proxy.rb +4 -4
  314. data/lib/tdlib/types/proxy_type/http.rb +2 -2
  315. data/lib/tdlib/types/proxy_type/mtproto.rb +1 -1
  316. data/lib/tdlib/types/proxy_type/socks5.rb +2 -2
  317. data/lib/tdlib/types/push_message_content/animation.rb +1 -1
  318. data/lib/tdlib/types/push_message_content/chat_add_members.rb +1 -1
  319. data/lib/tdlib/types/push_message_content/chat_change_title.rb +1 -1
  320. data/lib/tdlib/types/push_message_content/chat_delete_member.rb +1 -1
  321. data/lib/tdlib/types/push_message_content/contact.rb +1 -1
  322. data/lib/tdlib/types/push_message_content/game.rb +1 -1
  323. data/lib/tdlib/types/push_message_content/game_score.rb +2 -2
  324. data/lib/tdlib/types/push_message_content/invoice.rb +1 -1
  325. data/lib/tdlib/types/push_message_content/media_album.rb +1 -1
  326. data/lib/tdlib/types/push_message_content/message_forwards.rb +1 -1
  327. data/lib/tdlib/types/push_message_content/photo.rb +1 -1
  328. data/lib/tdlib/types/push_message_content/poll.rb +1 -1
  329. data/lib/tdlib/types/push_message_content/sticker.rb +1 -1
  330. data/lib/tdlib/types/push_message_content/text.rb +1 -1
  331. data/lib/tdlib/types/push_message_content/video.rb +1 -1
  332. data/lib/tdlib/types/push_receiver_id.rb +1 -1
  333. data/lib/tdlib/types/recommended_chat_filter.rb +1 -1
  334. data/lib/tdlib/types/recovery_email_address.rb +1 -1
  335. data/lib/tdlib/types/remote_file.rb +3 -3
  336. data/lib/tdlib/types/rich_text/anchor.rb +1 -1
  337. data/lib/tdlib/types/rich_text/anchor_link.rb +2 -2
  338. data/lib/tdlib/types/rich_text/email_address.rb +1 -1
  339. data/lib/tdlib/types/rich_text/icon.rb +2 -2
  340. data/lib/tdlib/types/rich_text/phone_number.rb +1 -1
  341. data/lib/tdlib/types/rich_text/plain.rb +1 -1
  342. data/lib/tdlib/types/rich_text/reference.rb +3 -3
  343. data/lib/tdlib/types/rich_text/url.rb +1 -1
  344. data/lib/tdlib/types/saved_credentials.rb +2 -2
  345. data/lib/tdlib/types/scope_notification_settings.rb +2 -2
  346. data/lib/tdlib/types/seconds.rb +1 -1
  347. data/lib/tdlib/types/secret_chat.rb +4 -4
  348. data/lib/tdlib/types/session.rb +15 -15
  349. data/lib/tdlib/types/shipping_option.rb +2 -2
  350. data/lib/tdlib/types/statistical_graph/async.rb +1 -1
  351. data/lib/tdlib/types/statistical_graph/data.rb +2 -2
  352. data/lib/tdlib/types/statistical_graph/error.rb +1 -1
  353. data/lib/tdlib/types/statistical_value.rb +3 -3
  354. data/lib/tdlib/types/sticker.rb +4 -4
  355. data/lib/tdlib/types/sticker_set.rb +3 -3
  356. data/lib/tdlib/types/sticker_set_info.rb +4 -4
  357. data/lib/tdlib/types/sticker_sets.rb +1 -1
  358. data/lib/tdlib/types/storage_statistics.rb +2 -2
  359. data/lib/tdlib/types/storage_statistics_by_chat.rb +3 -3
  360. data/lib/tdlib/types/storage_statistics_by_file_type.rb +2 -2
  361. data/lib/tdlib/types/storage_statistics_fast.rb +5 -5
  362. data/lib/tdlib/types/suggested_action/convert_to_broadcast_group.rb +1 -1
  363. data/lib/tdlib/types/supergroup.rb +7 -6
  364. data/lib/tdlib/types/supergroup_full_info.rb +11 -11
  365. data/lib/tdlib/types/supergroup_members_filter/banned.rb +1 -1
  366. data/lib/tdlib/types/supergroup_members_filter/contacts.rb +1 -1
  367. data/lib/tdlib/types/supergroup_members_filter/mention.rb +2 -2
  368. data/lib/tdlib/types/supergroup_members_filter/restricted.rb +1 -1
  369. data/lib/tdlib/types/supergroup_members_filter/search.rb +1 -1
  370. data/lib/tdlib/types/t_me_url.rb +1 -1
  371. data/lib/tdlib/types/t_me_url_type/sticker_set.rb +1 -1
  372. data/lib/tdlib/types/t_me_url_type/supergroup.rb +1 -1
  373. data/lib/tdlib/types/t_me_url_type/user.rb +1 -1
  374. data/lib/tdlib/types/tdlib_parameters.rb +12 -11
  375. data/lib/tdlib/types/temporary_password_state.rb +1 -1
  376. data/lib/tdlib/types/terms_of_service.rb +1 -1
  377. data/lib/tdlib/types/text.rb +1 -1
  378. data/lib/tdlib/types/text_entity.rb +2 -2
  379. data/lib/tdlib/types/text_entity_type/mention_name.rb +1 -1
  380. data/lib/tdlib/types/text_entity_type/pre_code.rb +1 -1
  381. data/lib/tdlib/types/text_entity_type/text_url.rb +1 -1
  382. data/lib/tdlib/types/text_parse_mode/markdown.rb +1 -1
  383. data/lib/tdlib/types/thumbnail.rb +2 -2
  384. data/lib/tdlib/types/update/animation_search_parameters.rb +2 -2
  385. data/lib/tdlib/types/update/basic_group_full_info.rb +1 -1
  386. data/lib/tdlib/types/update/chat_action_bar.rb +1 -1
  387. data/lib/tdlib/types/update/chat_default_disable_notification.rb +1 -1
  388. data/lib/tdlib/types/update/chat_draft_message.rb +1 -1
  389. data/lib/tdlib/types/update/chat_has_scheduled_messages.rb +1 -1
  390. data/lib/tdlib/types/update/chat_is_blocked.rb +1 -1
  391. data/lib/tdlib/types/update/chat_is_marked_as_unread.rb +1 -1
  392. data/lib/tdlib/types/update/chat_last_message.rb +1 -1
  393. data/lib/tdlib/types/update/chat_member.rb +3 -3
  394. data/lib/tdlib/types/update/chat_message_ttl_setting.rb +2 -2
  395. data/lib/tdlib/types/update/chat_notification_settings.rb +1 -1
  396. data/lib/tdlib/types/update/chat_online_member_count.rb +2 -2
  397. data/lib/tdlib/types/update/chat_permissions.rb +1 -1
  398. data/lib/tdlib/types/update/chat_photo.rb +1 -1
  399. data/lib/tdlib/types/update/chat_position.rb +1 -1
  400. data/lib/tdlib/types/update/chat_read_inbox.rb +3 -3
  401. data/lib/tdlib/types/update/chat_read_outbox.rb +2 -2
  402. data/lib/tdlib/types/update/chat_reply_markup.rb +2 -2
  403. data/lib/tdlib/types/update/chat_title.rb +2 -2
  404. data/lib/tdlib/types/update/chat_unread_mention_count.rb +2 -2
  405. data/lib/tdlib/types/update/chat_voice_chat.rb +1 -1
  406. data/lib/tdlib/types/update/delete_messages.rb +2 -2
  407. data/lib/tdlib/types/update/dice_emojis.rb +1 -1
  408. data/lib/tdlib/types/update/favorite_stickers.rb +1 -1
  409. data/lib/tdlib/types/update/file_generation_start.rb +5 -5
  410. data/lib/tdlib/types/update/file_generation_stop.rb +1 -1
  411. data/lib/tdlib/types/update/group_call_participant.rb +1 -1
  412. data/lib/tdlib/types/update/installed_sticker_sets.rb +1 -1
  413. data/lib/tdlib/types/update/language_pack_strings.rb +2 -2
  414. data/lib/tdlib/types/update/message_content.rb +2 -2
  415. data/lib/tdlib/types/update/message_content_opened.rb +2 -2
  416. data/lib/tdlib/types/update/message_edited.rb +3 -3
  417. data/lib/tdlib/types/update/message_interaction_info.rb +2 -2
  418. data/lib/tdlib/types/update/message_is_pinned.rb +2 -2
  419. data/lib/tdlib/types/update/message_live_location_viewed.rb +2 -2
  420. data/lib/tdlib/types/update/message_mention_read.rb +3 -3
  421. data/lib/tdlib/types/update/message_send_acknowledged.rb +2 -2
  422. data/lib/tdlib/types/update/message_send_failed.rb +3 -3
  423. data/lib/tdlib/types/update/message_send_succeeded.rb +1 -1
  424. data/lib/tdlib/types/update/new_call_signaling_data.rb +2 -2
  425. data/lib/tdlib/types/update/new_callback_query.rb +5 -5
  426. data/lib/tdlib/types/update/new_chosen_inline_result.rb +4 -4
  427. data/lib/tdlib/types/update/new_custom_event.rb +1 -1
  428. data/lib/tdlib/types/update/new_custom_query.rb +3 -3
  429. data/lib/tdlib/types/update/new_inline_callback_query.rb +4 -4
  430. data/lib/tdlib/types/update/new_inline_query.rb +4 -4
  431. data/lib/tdlib/types/update/new_pre_checkout_query.rb +7 -7
  432. data/lib/tdlib/types/update/new_shipping_query.rb +3 -3
  433. data/lib/tdlib/types/update/notification.rb +1 -1
  434. data/lib/tdlib/types/update/notification_group.rb +5 -5
  435. data/lib/tdlib/types/update/option.rb +1 -1
  436. data/lib/tdlib/types/update/poll_answer.rb +3 -3
  437. data/lib/tdlib/types/update/recent_stickers.rb +1 -1
  438. data/lib/tdlib/types/update/saved_animations.rb +1 -1
  439. data/lib/tdlib/types/update/service_notification.rb +1 -1
  440. data/lib/tdlib/types/update/supergroup_full_info.rb +1 -1
  441. data/lib/tdlib/types/update/terms_of_service.rb +1 -1
  442. data/lib/tdlib/types/update/unread_chat_count.rb +5 -5
  443. data/lib/tdlib/types/update/unread_message_count.rb +2 -2
  444. data/lib/tdlib/types/update/user_chat_action.rb +3 -3
  445. data/lib/tdlib/types/update/user_full_info.rb +1 -1
  446. data/lib/tdlib/types/update/user_status.rb +1 -1
  447. data/lib/tdlib/types/user.rb +8 -8
  448. data/lib/tdlib/types/user_full_info.rb +3 -3
  449. data/lib/tdlib/types/user_privacy_setting_rule/allow_chat_members.rb +1 -1
  450. data/lib/tdlib/types/user_privacy_setting_rule/allow_users.rb +1 -1
  451. data/lib/tdlib/types/user_privacy_setting_rule/restrict_chat_members.rb +1 -1
  452. data/lib/tdlib/types/user_privacy_setting_rule/restrict_users.rb +1 -1
  453. data/lib/tdlib/types/user_status/offline.rb +1 -1
  454. data/lib/tdlib/types/user_status/online.rb +1 -1
  455. data/lib/tdlib/types/user_type/bot.rb +2 -1
  456. data/lib/tdlib/types/users.rb +2 -2
  457. data/lib/tdlib/types/validated_order_info.rb +1 -1
  458. data/lib/tdlib/types/venue.rb +5 -5
  459. data/lib/tdlib/types/video.rb +5 -5
  460. data/lib/tdlib/types/video_note.rb +2 -2
  461. data/lib/tdlib/types/voice_chat.rb +1 -1
  462. data/lib/tdlib/types/voice_note.rb +3 -3
  463. data/lib/tdlib/types/web_page.rb +12 -12
  464. data/lib/tdlib/types/web_page_instant_view.rb +2 -2
  465. data/tdlib-schema.gemspec +1 -1
  466. metadata +2 -2
@@ -4,11 +4,11 @@ module TD::Types
4
4
  #
5
5
  # @attr id [Integer] Unique query identifier.
6
6
  # @attr sender_user_id [Integer] Identifier of the user who sent the query.
7
- # @attr invoice_payload [String] Invoice payload.
7
+ # @attr invoice_payload [TD::Types::String] Invoice payload.
8
8
  # @attr shipping_address [TD::Types::Address] User shipping address.
9
9
  class Update::NewShippingQuery < Update
10
- attribute :id, TD::Types::Integer
11
- attribute :sender_user_id, TD::Types::Integer
10
+ attribute :id, TD::Types::Coercible::Integer
11
+ attribute :sender_user_id, TD::Types::Coercible::Integer
12
12
  attribute :invoice_payload, TD::Types::String
13
13
  attribute :shipping_address, TD::Types::Address
14
14
  end
@@ -4,7 +4,7 @@ module TD::Types
4
4
  # @attr notification_group_id [Integer] Unique notification group identifier.
5
5
  # @attr notification [TD::Types::Notification] Changed notification.
6
6
  class Update::Notification < Update
7
- attribute :notification_group_id, TD::Types::Integer
7
+ attribute :notification_group_id, TD::Types::Coercible::Integer
8
8
  attribute :notification, TD::Types::Notification
9
9
  end
10
10
  end
@@ -14,13 +14,13 @@ module TD::Types
14
14
  # @attr removed_notification_ids [Array<Integer>] Identifiers of removed group notifications, sorted by notification
15
15
  # ID.
16
16
  class Update::NotificationGroup < Update
17
- attribute :notification_group_id, TD::Types::Integer
17
+ attribute :notification_group_id, TD::Types::Coercible::Integer
18
18
  attribute :type, TD::Types::NotificationGroupType
19
- attribute :chat_id, TD::Types::Integer
20
- attribute :notification_settings_chat_id, TD::Types::Integer
19
+ attribute :chat_id, TD::Types::Coercible::Integer
20
+ attribute :notification_settings_chat_id, TD::Types::Coercible::Integer
21
21
  attribute :is_silent, TD::Types::Bool
22
- attribute :total_count, TD::Types::Integer
22
+ attribute :total_count, TD::Types::Coercible::Integer
23
23
  attribute :added_notifications, TD::Types::Array.of(TD::Types::Notification)
24
- attribute :removed_notification_ids, TD::Types::Array.of(TD::Types::Integer)
24
+ attribute :removed_notification_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
25
25
  end
26
26
  end
@@ -1,7 +1,7 @@
1
1
  module TD::Types
2
2
  # An option changed its value.
3
3
  #
4
- # @attr name [String] The option name.
4
+ # @attr name [TD::Types::String] The option name.
5
5
  # @attr value [TD::Types::OptionValue] The new option value.
6
6
  class Update::Option < Update
7
7
  attribute :name, TD::Types::String
@@ -5,8 +5,8 @@ module TD::Types
5
5
  # @attr user_id [Integer] The user, who changed the answer to the poll.
6
6
  # @attr option_ids [Array<Integer>] 0-based identifiers of answer options, chosen by the user.
7
7
  class Update::PollAnswer < Update
8
- attribute :poll_id, TD::Types::Integer
9
- attribute :user_id, TD::Types::Integer
10
- attribute :option_ids, TD::Types::Array.of(TD::Types::Integer)
8
+ attribute :poll_id, TD::Types::Coercible::Integer
9
+ attribute :user_id, TD::Types::Coercible::Integer
10
+ attribute :option_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
11
11
  end
12
12
  end
@@ -6,6 +6,6 @@ module TD::Types
6
6
  # @attr sticker_ids [Array<Integer>] The new list of file identifiers of recently used stickers.
7
7
  class Update::RecentStickers < Update
8
8
  attribute :is_attached, TD::Types::Bool
9
- attribute :sticker_ids, TD::Types::Array.of(TD::Types::Integer)
9
+ attribute :sticker_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
10
10
  end
11
11
  end
@@ -3,6 +3,6 @@ module TD::Types
3
3
  #
4
4
  # @attr animation_ids [Array<Integer>] The new list of file identifiers of saved animations.
5
5
  class Update::SavedAnimations < Update
6
- attribute :animation_ids, TD::Types::Array.of(TD::Types::Integer)
6
+ attribute :animation_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@ module TD::Types
2
2
  # Service notification from the server.
3
3
  # Upon receiving this the application must show a popup with the content of the notification.
4
4
  #
5
- # @attr type [String] Notification type.
5
+ # @attr type [TD::Types::String] Notification type.
6
6
  # If type begins with "AUTH_KEY_DROP_", then two buttons "Cancel" and "Log out" should be shown under notification;
7
7
  # if user presses the second, all local data should be destroyed using Destroy method.
8
8
  # @attr content [TD::Types::MessageContent] Notification content.
@@ -4,7 +4,7 @@ module TD::Types
4
4
  # @attr supergroup_id [Integer] Identifier of the supergroup or channel.
5
5
  # @attr supergroup_full_info [TD::Types::SupergroupFullInfo] New full information about the supergroup.
6
6
  class Update::SupergroupFullInfo < Update
7
- attribute :supergroup_id, TD::Types::Integer
7
+ attribute :supergroup_id, TD::Types::Coercible::Integer
8
8
  attribute :supergroup_full_info, TD::Types::SupergroupFullInfo
9
9
  end
10
10
  end
@@ -3,7 +3,7 @@ module TD::Types
3
3
  # If the terms of service are declined, then the deleteAccount method should be called with the reason "Decline ToS
4
4
  # update".
5
5
  #
6
- # @attr terms_of_service_id [String] Identifier of the terms of service.
6
+ # @attr terms_of_service_id [TD::Types::String] Identifier of the terms of service.
7
7
  # @attr terms_of_service [TD::Types::TermsOfService] The new terms of service.
8
8
  class Update::TermsOfService < Update
9
9
  attribute :terms_of_service_id, TD::Types::String
@@ -11,10 +11,10 @@ module TD::Types
11
11
  # @attr marked_as_unread_unmuted_count [Integer] Total number of unmuted chats marked as unread.
12
12
  class Update::UnreadChatCount < Update
13
13
  attribute :chat_list, TD::Types::ChatList
14
- attribute :total_count, TD::Types::Integer
15
- attribute :unread_count, TD::Types::Integer
16
- attribute :unread_unmuted_count, TD::Types::Integer
17
- attribute :marked_as_unread_count, TD::Types::Integer
18
- attribute :marked_as_unread_unmuted_count, TD::Types::Integer
14
+ attribute :total_count, TD::Types::Coercible::Integer
15
+ attribute :unread_count, TD::Types::Coercible::Integer
16
+ attribute :unread_unmuted_count, TD::Types::Coercible::Integer
17
+ attribute :marked_as_unread_count, TD::Types::Coercible::Integer
18
+ attribute :marked_as_unread_unmuted_count, TD::Types::Coercible::Integer
19
19
  end
20
20
  end
@@ -7,7 +7,7 @@ module TD::Types
7
7
  # @attr unread_unmuted_count [Integer] Total number of unread messages in unmuted chats.
8
8
  class Update::UnreadMessageCount < Update
9
9
  attribute :chat_list, TD::Types::ChatList
10
- attribute :unread_count, TD::Types::Integer
11
- attribute :unread_unmuted_count, TD::Types::Integer
10
+ attribute :unread_count, TD::Types::Coercible::Integer
11
+ attribute :unread_unmuted_count, TD::Types::Coercible::Integer
12
12
  end
13
13
  end
@@ -6,9 +6,9 @@ module TD::Types
6
6
  # @attr user_id [Integer] Identifier of a user performing an action.
7
7
  # @attr action [TD::Types::ChatAction] The action description.
8
8
  class Update::UserChatAction < Update
9
- attribute :chat_id, TD::Types::Integer
10
- attribute :message_thread_id, TD::Types::Integer
11
- attribute :user_id, TD::Types::Integer
9
+ attribute :chat_id, TD::Types::Coercible::Integer
10
+ attribute :message_thread_id, TD::Types::Coercible::Integer
11
+ attribute :user_id, TD::Types::Coercible::Integer
12
12
  attribute :action, TD::Types::ChatAction
13
13
  end
14
14
  end
@@ -4,7 +4,7 @@ module TD::Types
4
4
  # @attr user_id [Integer] User identifier.
5
5
  # @attr user_full_info [TD::Types::UserFullInfo] New full information about the user.
6
6
  class Update::UserFullInfo < Update
7
- attribute :user_id, TD::Types::Integer
7
+ attribute :user_id, TD::Types::Coercible::Integer
8
8
  attribute :user_full_info, TD::Types::UserFullInfo
9
9
  end
10
10
  end
@@ -4,7 +4,7 @@ module TD::Types
4
4
  # @attr user_id [Integer] User identifier.
5
5
  # @attr status [TD::Types::UserStatus] New status of the user.
6
6
  class Update::UserStatus < Update
7
- attribute :user_id, TD::Types::Integer
7
+ attribute :user_id, TD::Types::Coercible::Integer
8
8
  attribute :status, TD::Types::UserStatus
9
9
  end
10
10
  end
@@ -2,10 +2,10 @@ module TD::Types
2
2
  # Represents a user.
3
3
  #
4
4
  # @attr id [Integer] User identifier.
5
- # @attr first_name [String] First name of the user.
6
- # @attr last_name [String] Last name of the user.
7
- # @attr username [String] Username of the user.
8
- # @attr phone_number [String] Phone number of the user.
5
+ # @attr first_name [TD::Types::String] First name of the user.
6
+ # @attr last_name [TD::Types::String] Last name of the user.
7
+ # @attr username [TD::Types::String] Username of the user.
8
+ # @attr phone_number [TD::Types::String] Phone number of the user.
9
9
  # @attr status [TD::Types::UserStatus] Current online status of the user.
10
10
  # @attr profile_photo [TD::Types::ProfilePhoto, nil] Profile photo of the user; may be null.
11
11
  # @attr is_contact [Boolean] The user is a contact of the current user.
@@ -13,17 +13,17 @@ module TD::Types
13
13
  # the user.
14
14
  # @attr is_verified [Boolean] True, if the user is verified.
15
15
  # @attr is_support [Boolean] True, if the user is Telegram support account.
16
- # @attr restriction_reason [String] If non-empty, it contains a human-readable description of the reason why access
17
- # to this user must be restricted.
16
+ # @attr restriction_reason [TD::Types::String] If non-empty, it contains a human-readable description of the reason
17
+ # why access to this user must be restricted.
18
18
  # @attr is_scam [Boolean] True, if many users reported this user as a scam.
19
19
  # @attr is_fake [Boolean] True, if many users reported this user as a fake account.
20
20
  # @attr have_access [Boolean] If false, the user is inaccessible, and the only information known about the user is
21
21
  # inside this class.
22
22
  # It can't be passed to any method except GetUser.
23
23
  # @attr type [TD::Types::UserType] Type of the user.
24
- # @attr language_code [String] IETF language tag of the user's language; only available to bots.
24
+ # @attr language_code [TD::Types::String] IETF language tag of the user's language; only available to bots.
25
25
  class User < Base
26
- attribute :id, TD::Types::Integer
26
+ attribute :id, TD::Types::Coercible::Integer
27
27
  attribute :first_name, TD::Types::String
28
28
  attribute :last_name, TD::Types::String
29
29
  attribute :username, TD::Types::String
@@ -8,8 +8,8 @@ module TD::Types
8
8
  # @attr has_private_calls [Boolean] True, if the user can't be called due to their privacy settings.
9
9
  # @attr need_phone_number_privacy_exception [Boolean] True, if the current user needs to explicitly allow to share
10
10
  # their phone number with the user when the method addContact is used.
11
- # @attr bio [String] A short user bio.
12
- # @attr share_text [String] For bots, the text that is included with the link when users share the bot.
11
+ # @attr bio [TD::Types::String] A short user bio.
12
+ # @attr share_text [TD::Types::String] For bots, the text that is included with the link when users share the bot.
13
13
  # @attr group_in_common_count [Integer] Number of group chats where both the other user and the current user are a
14
14
  # member; 0 for the current user.
15
15
  # @attr bot_info [TD::Types::BotInfo, nil] If the user is a bot, information about the bot; may be null.
@@ -22,7 +22,7 @@ module TD::Types
22
22
  attribute :need_phone_number_privacy_exception, TD::Types::Bool
23
23
  attribute :bio, TD::Types::String
24
24
  attribute :share_text, TD::Types::String
25
- attribute :group_in_common_count, TD::Types::Integer
25
+ attribute :group_in_common_count, TD::Types::Coercible::Integer
26
26
  attribute :bot_info, TD::Types::BotInfo.optional.default(nil)
27
27
  end
28
28
  end
@@ -3,6 +3,6 @@ module TD::Types
3
3
  #
4
4
  # @attr chat_ids [Array<Integer>] The chat identifiers, total number of chats in all rules must not exceed 20.
5
5
  class UserPrivacySettingRule::AllowChatMembers < UserPrivacySettingRule
6
- attribute :chat_ids, TD::Types::Array.of(TD::Types::Integer)
6
+ attribute :chat_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
7
7
  end
8
8
  end
@@ -3,6 +3,6 @@ module TD::Types
3
3
  #
4
4
  # @attr user_ids [Array<Integer>] The user identifiers, total number of users in all rules must not exceed 1000.
5
5
  class UserPrivacySettingRule::AllowUsers < UserPrivacySettingRule
6
- attribute :user_ids, TD::Types::Array.of(TD::Types::Integer)
6
+ attribute :user_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
7
7
  end
8
8
  end
@@ -3,6 +3,6 @@ module TD::Types
3
3
  #
4
4
  # @attr chat_ids [Array<Integer>] The chat identifiers, total number of chats in all rules must not exceed 20.
5
5
  class UserPrivacySettingRule::RestrictChatMembers < UserPrivacySettingRule
6
- attribute :chat_ids, TD::Types::Array.of(TD::Types::Integer)
6
+ attribute :chat_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
7
7
  end
8
8
  end
@@ -3,6 +3,6 @@ module TD::Types
3
3
  #
4
4
  # @attr user_ids [Array<Integer>] The user identifiers, total number of users in all rules must not exceed 1000.
5
5
  class UserPrivacySettingRule::RestrictUsers < UserPrivacySettingRule
6
- attribute :user_ids, TD::Types::Array.of(TD::Types::Integer)
6
+ attribute :user_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
7
7
  end
8
8
  end
@@ -3,6 +3,6 @@ module TD::Types
3
3
  #
4
4
  # @attr was_online [Integer] Point in time (Unix timestamp) when the user was last online.
5
5
  class UserStatus::Offline < UserStatus
6
- attribute :was_online, TD::Types::Integer
6
+ attribute :was_online, TD::Types::Coercible::Integer
7
7
  end
8
8
  end
@@ -3,6 +3,6 @@ module TD::Types
3
3
  #
4
4
  # @attr expires [Integer] Point in time (Unix timestamp) when the user's online status will expire.
5
5
  class UserStatus::Online < UserStatus
6
- attribute :expires, TD::Types::Integer
6
+ attribute :expires, TD::Types::Coercible::Integer
7
7
  end
8
8
  end
@@ -6,7 +6,8 @@ module TD::Types
6
6
  # chats and not just those addressed to the bot.
7
7
  # In private and channel chats a bot can always read all messages.
8
8
  # @attr is_inline [Boolean] True, if the bot supports inline queries.
9
- # @attr inline_query_placeholder [String] Placeholder for inline queries (displayed on the application input field).
9
+ # @attr inline_query_placeholder [TD::Types::String] Placeholder for inline queries (displayed on the application
10
+ # input field).
10
11
  # @attr need_location [Boolean] True, if the location of the user should be sent with every inline query to this bot.
11
12
  class UserType::Bot < UserType
12
13
  attribute :can_join_groups, TD::Types::Bool
@@ -4,7 +4,7 @@ module TD::Types
4
4
  # @attr total_count [Integer] Approximate total count of users found.
5
5
  # @attr user_ids [Array<Integer>] A list of user identifiers.
6
6
  class Users < Base
7
- attribute :total_count, TD::Types::Integer
8
- attribute :user_ids, TD::Types::Array.of(TD::Types::Integer)
7
+ attribute :total_count, TD::Types::Coercible::Integer
8
+ attribute :user_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
9
9
  end
10
10
  end
@@ -2,7 +2,7 @@ module TD::Types
2
2
  # Contains a temporary identifier of validated order information, which is stored for one hour.
3
3
  # Also contains the available shipping options.
4
4
  #
5
- # @attr order_info_id [String] Temporary identifier of the order information.
5
+ # @attr order_info_id [TD::Types::String] Temporary identifier of the order information.
6
6
  # @attr shipping_options [Array<TD::Types::ShippingOption>] Available shipping options.
7
7
  class ValidatedOrderInfo < Base
8
8
  attribute :order_info_id, TD::Types::String
@@ -2,12 +2,12 @@ module TD::Types
2
2
  # Describes a venue.
3
3
  #
4
4
  # @attr location [TD::Types::Location] Venue location; as defined by the sender.
5
- # @attr title [String] Venue name; as defined by the sender.
6
- # @attr address [String] Venue address; as defined by the sender.
7
- # @attr provider [String] Provider of the venue database; as defined by the sender.
5
+ # @attr title [TD::Types::String] Venue name; as defined by the sender.
6
+ # @attr address [TD::Types::String] Venue address; as defined by the sender.
7
+ # @attr provider [TD::Types::String] Provider of the venue database; as defined by the sender.
8
8
  # Currently only "foursquare" and "gplaces" (Google Places) need to be supported.
9
- # @attr id [String] Identifier of the venue in the provider database; as defined by the sender.
10
- # @attr type [String] Type of the venue in the provider database; as defined by the sender.
9
+ # @attr id [TD::Types::String] Identifier of the venue in the provider database; as defined by the sender.
10
+ # @attr type [TD::Types::String] Type of the venue in the provider database; as defined by the sender.
11
11
  class Venue < Base
12
12
  attribute :location, TD::Types::Location
13
13
  attribute :title, TD::Types::String
@@ -4,8 +4,8 @@ module TD::Types
4
4
  # @attr duration [Integer] Duration of the video, in seconds; as defined by the sender.
5
5
  # @attr width [Integer] Video width; as defined by the sender.
6
6
  # @attr height [Integer] Video height; as defined by the sender.
7
- # @attr file_name [String] Original name of the file; as defined by the sender.
8
- # @attr mime_type [String] MIME type of the file; as defined by the sender.
7
+ # @attr file_name [TD::Types::String] Original name of the file; as defined by the sender.
8
+ # @attr mime_type [TD::Types::String] MIME type of the file; as defined by the sender.
9
9
  # @attr has_stickers [Boolean] True, if stickers were added to the video.
10
10
  # The list of corresponding sticker sets can be received using getAttachedStickerSets.
11
11
  # @attr supports_streaming [Boolean] True, if the video should be tried to be streamed.
@@ -14,9 +14,9 @@ module TD::Types
14
14
  # be null.
15
15
  # @attr video [TD::Types::File] File containing the video.
16
16
  class Video < Base
17
- attribute :duration, TD::Types::Integer
18
- attribute :width, TD::Types::Integer
19
- attribute :height, TD::Types::Integer
17
+ attribute :duration, TD::Types::Coercible::Integer
18
+ attribute :width, TD::Types::Coercible::Integer
19
+ attribute :height, TD::Types::Coercible::Integer
20
20
  attribute :file_name, TD::Types::String
21
21
  attribute :mime_type, TD::Types::String
22
22
  attribute :has_stickers, TD::Types::Bool
@@ -8,8 +8,8 @@ module TD::Types
8
8
  # @attr thumbnail [TD::Types::Thumbnail, nil] Video thumbnail in JPEG format; as defined by the sender; may be null.
9
9
  # @attr video [TD::Types::File] File containing the video.
10
10
  class VideoNote < Base
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
  attribute :minithumbnail, TD::Types::Minithumbnail.optional.default(nil)
14
14
  attribute :thumbnail, TD::Types::Thumbnail.optional.default(nil)
15
15
  attribute :video, TD::Types::File
@@ -7,7 +7,7 @@ module TD::Types
7
7
  # @attr default_participant_id [TD::Types::MessageSender, nil] Default group call participant identifier to join the
8
8
  # voice chat; may be null.
9
9
  class VoiceChat < Base
10
- attribute :group_call_id, TD::Types::Integer
10
+ attribute :group_call_id, TD::Types::Coercible::Integer
11
11
  attribute :has_participants, TD::Types::Bool
12
12
  attribute :default_participant_id, TD::Types::MessageSender.optional.default(nil)
13
13
  end
@@ -5,11 +5,11 @@ module TD::Types
5
5
  #
6
6
  # @attr duration [Integer] Duration of the voice note, in seconds; as defined by the sender.
7
7
  # @attr waveform [String] A waveform representation of the voice note in 5-bit format.
8
- # @attr mime_type [String] MIME type of the file; as defined by the sender.
8
+ # @attr mime_type [TD::Types::String] MIME type of the file; as defined by the sender.
9
9
  # @attr voice [TD::Types::File] File containing the voice note.
10
10
  class VoiceNote < Base
11
- attribute :duration, TD::Types::Integer
12
- attribute :waveform, TD::Types::String
11
+ attribute :duration, TD::Types::Coercible::Integer
12
+ attribute :waveform, TD::Types::Coercible::String
13
13
  attribute :mime_type, TD::Types::String
14
14
  attribute :voice, TD::Types::File
15
15
  end
@@ -1,20 +1,20 @@
1
1
  module TD::Types
2
2
  # Describes a web page preview.
3
3
  #
4
- # @attr url [String] Original URL of the link.
5
- # @attr display_url [String] URL to display.
6
- # @attr type [String] Type of the web page.
4
+ # @attr url [TD::Types::String] Original URL of the link.
5
+ # @attr display_url [TD::Types::String] URL to display.
6
+ # @attr type [TD::Types::String] Type of the web page.
7
7
  # Can be: article, photo, audio, video, document, profile, app, or something else.
8
- # @attr site_name [String] Short name of the site (e.g., Google Docs, App Store).
9
- # @attr title [String] Title of the content.
8
+ # @attr site_name [TD::Types::String] Short name of the site (e.g., Google Docs, App Store).
9
+ # @attr title [TD::Types::String] Title of the content.
10
10
  # @attr description [TD::Types::FormattedText] Description of the content.
11
11
  # @attr photo [TD::Types::Photo, nil] Image representing the content; may be null.
12
- # @attr embed_url [String] URL to show in the embedded preview.
13
- # @attr embed_type [String] MIME type of the embedded preview, (e.g., text/html or video/mp4).
12
+ # @attr embed_url [TD::Types::String] URL to show in the embedded preview.
13
+ # @attr embed_type [TD::Types::String] MIME type of the embedded preview, (e.g., text/html or video/mp4).
14
14
  # @attr embed_width [Integer] Width of the embedded preview.
15
15
  # @attr embed_height [Integer] Height of the embedded preview.
16
16
  # @attr duration [Integer] Duration of the content, in seconds.
17
- # @attr author [String] Author of the content.
17
+ # @attr author [TD::Types::String] Author of the content.
18
18
  # @attr animation [TD::Types::Animation, nil] Preview of the content as an animation, if available; may be null.
19
19
  # @attr audio [TD::Types::Audio, nil] Preview of the content as an audio file, if available; may be null.
20
20
  # @attr document [TD::Types::Document, nil] Preview of the content as a document, if available (currently only
@@ -36,9 +36,9 @@ module TD::Types
36
36
  attribute :photo, TD::Types::Photo.optional.default(nil)
37
37
  attribute :embed_url, TD::Types::String
38
38
  attribute :embed_type, TD::Types::String
39
- attribute :embed_width, TD::Types::Integer
40
- attribute :embed_height, TD::Types::Integer
41
- attribute :duration, TD::Types::Integer
39
+ attribute :embed_width, TD::Types::Coercible::Integer
40
+ attribute :embed_height, TD::Types::Coercible::Integer
41
+ attribute :duration, TD::Types::Coercible::Integer
42
42
  attribute :author, TD::Types::String
43
43
  attribute :animation, TD::Types::Animation.optional.default(nil)
44
44
  attribute :audio, TD::Types::Audio.optional.default(nil)
@@ -47,6 +47,6 @@ module TD::Types
47
47
  attribute :video, TD::Types::Video.optional.default(nil)
48
48
  attribute :video_note, TD::Types::VideoNote.optional.default(nil)
49
49
  attribute :voice_note, TD::Types::VoiceNote.optional.default(nil)
50
- attribute :instant_view_version, TD::Types::Integer
50
+ attribute :instant_view_version, TD::Types::Coercible::Integer
51
51
  end
52
52
  end