tdlib-schema 1.7.0.3 → 1.7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1232) hide show
  1. checksums.yaml +4 -4
  2. data/bin/parser +18 -10
  3. data/lib/tdlib/client_methods.rb +5741 -1037
  4. data/lib/tdlib/types/accent_color.rb +21 -0
  5. data/lib/tdlib/types/account_ttl.rb +1 -2
  6. data/lib/tdlib/types/added_reaction.rb +14 -0
  7. data/lib/tdlib/types/added_reactions.rb +13 -0
  8. data/lib/tdlib/types/animated_emoji.rb +18 -0
  9. data/lib/tdlib/types/archive_chat_list_settings.rb +17 -0
  10. data/lib/tdlib/types/attachment_menu_bot.rb +67 -0
  11. data/lib/tdlib/types/attachment_menu_bot_color.rb +10 -0
  12. data/lib/tdlib/types/audio.rb +5 -1
  13. data/lib/tdlib/types/authentication_code_info.rb +4 -4
  14. data/lib/tdlib/types/authentication_code_type/call.rb +1 -1
  15. data/lib/tdlib/types/authentication_code_type/firebase_android.rb +11 -0
  16. data/lib/tdlib/types/authentication_code_type/firebase_ios.rb +14 -0
  17. data/lib/tdlib/types/authentication_code_type/flash_call.rb +2 -2
  18. data/lib/tdlib/types/authentication_code_type/fragment.rb +11 -0
  19. data/lib/tdlib/types/authentication_code_type/missed_call.rb +11 -0
  20. data/lib/tdlib/types/authentication_code_type/sms.rb +2 -1
  21. data/lib/tdlib/types/authentication_code_type/sms_phrase.rb +9 -0
  22. data/lib/tdlib/types/authentication_code_type/sms_word.rb +9 -0
  23. data/lib/tdlib/types/authentication_code_type/telegram_message.rb +2 -2
  24. data/lib/tdlib/types/authentication_code_type.rb +6 -0
  25. data/lib/tdlib/types/authorization_state/closed.rb +1 -1
  26. data/lib/tdlib/types/authorization_state/ready.rb +1 -1
  27. data/lib/tdlib/types/authorization_state/wait_code.rb +1 -0
  28. data/lib/tdlib/types/authorization_state/wait_email_address.rb +12 -0
  29. data/lib/tdlib/types/authorization_state/wait_email_code.rb +16 -0
  30. data/lib/tdlib/types/authorization_state/wait_password.rb +5 -1
  31. data/lib/tdlib/types/authorization_state/wait_phone_number.rb +2 -2
  32. data/lib/tdlib/types/authorization_state/wait_registration.rb +1 -0
  33. data/lib/tdlib/types/authorization_state/wait_tdlib_parameters.rb +2 -1
  34. data/lib/tdlib/types/authorization_state.rb +2 -1
  35. data/lib/tdlib/types/auto_download_settings.rb +6 -4
  36. data/lib/tdlib/types/auto_download_settings_presets.rb +1 -1
  37. data/lib/tdlib/types/autosave_settings.rb +15 -0
  38. data/lib/tdlib/types/autosave_settings_exception.rb +10 -0
  39. data/lib/tdlib/types/autosave_settings_scope/channel_chats.rb +5 -0
  40. data/lib/tdlib/types/autosave_settings_scope/chat.rb +8 -0
  41. data/lib/tdlib/types/autosave_settings_scope/group_chats.rb +5 -0
  42. data/lib/tdlib/types/autosave_settings_scope/private_chats.rb +5 -0
  43. data/lib/tdlib/types/autosave_settings_scope.rb +13 -0
  44. data/lib/tdlib/types/available_reaction.rb +10 -0
  45. data/lib/tdlib/types/available_reactions.rb +19 -0
  46. data/lib/tdlib/types/background.rb +1 -1
  47. data/lib/tdlib/types/background_fill/freeform_gradient.rb +8 -0
  48. data/lib/tdlib/types/background_fill/gradient.rb +1 -1
  49. data/lib/tdlib/types/background_fill.rb +1 -0
  50. data/lib/tdlib/types/background_type/chat_theme.rb +8 -0
  51. data/lib/tdlib/types/background_type/fill.rb +1 -1
  52. data/lib/tdlib/types/background_type/pattern.rb +5 -1
  53. data/lib/tdlib/types/background_type.rb +2 -1
  54. data/lib/tdlib/types/basic_group_full_info.rb +10 -1
  55. data/lib/tdlib/types/birthdate.rb +12 -0
  56. data/lib/tdlib/types/block_list/main.rb +6 -0
  57. data/lib/tdlib/types/block_list/stories.rb +5 -0
  58. data/lib/tdlib/types/block_list.rb +11 -0
  59. data/lib/tdlib/types/bot_command_scope/all_chat_administrators.rb +5 -0
  60. data/lib/tdlib/types/bot_command_scope/all_group_chats.rb +5 -0
  61. data/lib/tdlib/types/bot_command_scope/all_private_chats.rb +5 -0
  62. data/lib/tdlib/types/bot_command_scope/chat.rb +8 -0
  63. data/lib/tdlib/types/bot_command_scope/chat_administrators.rb +8 -0
  64. data/lib/tdlib/types/bot_command_scope/chat_member.rb +10 -0
  65. data/lib/tdlib/types/bot_command_scope/default.rb +5 -0
  66. data/lib/tdlib/types/bot_command_scope.rb +16 -0
  67. data/lib/tdlib/types/bot_commands.rb +10 -0
  68. data/lib/tdlib/types/bot_info.rb +38 -3
  69. data/lib/tdlib/types/bot_media_preview.rb +10 -0
  70. data/lib/tdlib/types/bot_media_preview_info.rb +11 -0
  71. data/lib/tdlib/types/bot_media_previews.rb +8 -0
  72. data/lib/tdlib/types/bot_menu_button.rb +12 -0
  73. data/lib/tdlib/types/bot_transaction_purpose/invoice_payment.rb +11 -0
  74. data/lib/tdlib/types/bot_transaction_purpose/paid_media.rb +8 -0
  75. data/lib/tdlib/types/bot_transaction_purpose.rb +11 -0
  76. data/lib/tdlib/types/bot_write_access_allow_reason/accepted_request.rb +5 -0
  77. data/lib/tdlib/types/bot_write_access_allow_reason/added_to_attachment_menu.rb +5 -0
  78. data/lib/tdlib/types/bot_write_access_allow_reason/connected_website.rb +8 -0
  79. data/lib/tdlib/types/bot_write_access_allow_reason/launched_web_app.rb +8 -0
  80. data/lib/tdlib/types/bot_write_access_allow_reason.rb +13 -0
  81. data/lib/tdlib/types/business_away_message_schedule/always.rb +5 -0
  82. data/lib/tdlib/types/business_away_message_schedule/custom.rb +10 -0
  83. data/lib/tdlib/types/business_away_message_schedule/outside_of_opening_hours.rb +5 -0
  84. data/lib/tdlib/types/business_away_message_schedule.rb +12 -0
  85. data/lib/tdlib/types/business_away_message_settings.rb +15 -0
  86. data/lib/tdlib/types/business_bot_manage_bar.rb +15 -0
  87. data/lib/tdlib/types/business_chat_link.rb +14 -0
  88. data/lib/tdlib/types/business_chat_link_info.rb +10 -0
  89. data/lib/tdlib/types/business_chat_links.rb +8 -0
  90. data/lib/tdlib/types/business_connected_bot.rb +12 -0
  91. data/lib/tdlib/types/business_connection.rb +18 -0
  92. data/lib/tdlib/types/business_feature/account_links.rb +5 -0
  93. data/lib/tdlib/types/business_feature/away_message.rb +5 -0
  94. data/lib/tdlib/types/business_feature/bots.rb +5 -0
  95. data/lib/tdlib/types/business_feature/chat_folder_tags.rb +5 -0
  96. data/lib/tdlib/types/business_feature/emoji_status.rb +5 -0
  97. data/lib/tdlib/types/business_feature/greeting_message.rb +5 -0
  98. data/lib/tdlib/types/business_feature/location.rb +5 -0
  99. data/lib/tdlib/types/business_feature/opening_hours.rb +5 -0
  100. data/lib/tdlib/types/business_feature/quick_replies.rb +5 -0
  101. data/lib/tdlib/types/business_feature/start_page.rb +5 -0
  102. data/lib/tdlib/types/business_feature/upgraded_stories.rb +5 -0
  103. data/lib/tdlib/types/business_feature.rb +20 -0
  104. data/lib/tdlib/types/business_feature_promotion_animation.rb +10 -0
  105. data/lib/tdlib/types/business_features.rb +8 -0
  106. data/lib/tdlib/types/business_greeting_message_settings.rb +14 -0
  107. data/lib/tdlib/types/business_info.rb +32 -0
  108. data/lib/tdlib/types/business_location.rb +10 -0
  109. data/lib/tdlib/types/business_message.rb +11 -0
  110. data/lib/tdlib/types/business_messages.rb +8 -0
  111. data/lib/tdlib/types/business_opening_hours.rb +11 -0
  112. data/lib/tdlib/types/business_opening_hours_interval.rb +12 -0
  113. data/lib/tdlib/types/business_recipients.rb +22 -0
  114. data/lib/tdlib/types/business_start_page.rb +12 -0
  115. data/lib/tdlib/types/call.rb +1 -1
  116. data/lib/tdlib/types/call_discard_reason/missed.rb +1 -1
  117. data/lib/tdlib/types/call_problem.rb +1 -1
  118. data/lib/tdlib/types/call_protocol.rb +1 -1
  119. data/lib/tdlib/types/call_server_type/telegram_reflector.rb +2 -0
  120. data/lib/tdlib/types/call_server_type.rb +1 -1
  121. data/lib/tdlib/types/call_state/discarded.rb +5 -3
  122. data/lib/tdlib/types/call_state/ready.rb +4 -2
  123. data/lib/tdlib/types/callback_query_answer.rb +1 -1
  124. data/lib/tdlib/types/callback_query_payload/data_with_password.rb +1 -1
  125. data/lib/tdlib/types/can_send_message_to_user_result/ok.rb +5 -0
  126. data/lib/tdlib/types/can_send_message_to_user_result/user_is_deleted.rb +5 -0
  127. data/lib/tdlib/types/can_send_message_to_user_result/user_restricts_new_chats.rb +5 -0
  128. data/lib/tdlib/types/can_send_message_to_user_result.rb +12 -0
  129. data/lib/tdlib/types/can_send_story_result/active_story_limit_exceeded.rb +6 -0
  130. data/lib/tdlib/types/can_send_story_result/boost_needed.rb +6 -0
  131. data/lib/tdlib/types/can_send_story_result/monthly_limit_exceeded.rb +9 -0
  132. data/lib/tdlib/types/can_send_story_result/ok.rb +5 -0
  133. data/lib/tdlib/types/can_send_story_result/premium_needed.rb +5 -0
  134. data/lib/tdlib/types/can_send_story_result/weekly_limit_exceeded.rb +9 -0
  135. data/lib/tdlib/types/can_send_story_result.rb +15 -0
  136. data/lib/tdlib/types/channel_transaction_purpose/join.rb +8 -0
  137. data/lib/tdlib/types/channel_transaction_purpose/paid_media.rb +11 -0
  138. data/lib/tdlib/types/channel_transaction_purpose/reaction.rb +8 -0
  139. data/lib/tdlib/types/channel_transaction_purpose.rb +12 -0
  140. data/lib/tdlib/types/chat.rb +56 -16
  141. data/lib/tdlib/types/chat_action/cancel.rb +1 -1
  142. data/lib/tdlib/types/chat_action/choosing_sticker.rb +5 -0
  143. data/lib/tdlib/types/chat_action/watching_animations.rb +8 -0
  144. data/lib/tdlib/types/chat_action.rb +2 -0
  145. data/lib/tdlib/types/chat_action_bar/invite_members.rb +1 -1
  146. data/lib/tdlib/types/chat_action_bar/join_request.rb +12 -0
  147. data/lib/tdlib/types/chat_action_bar/report_add_block.rb +6 -3
  148. data/lib/tdlib/types/chat_action_bar/report_spam.rb +3 -1
  149. data/lib/tdlib/types/chat_action_bar/report_unrelated_location.rb +1 -1
  150. data/lib/tdlib/types/chat_action_bar.rb +2 -1
  151. data/lib/tdlib/types/chat_active_stories.rb +21 -0
  152. data/lib/tdlib/types/chat_administrator_rights.rb +48 -0
  153. data/lib/tdlib/types/chat_available_reactions/all.rb +8 -0
  154. data/lib/tdlib/types/chat_available_reactions/some.rb +10 -0
  155. data/lib/tdlib/types/chat_available_reactions.rb +11 -0
  156. data/lib/tdlib/types/chat_background.rb +11 -0
  157. data/lib/tdlib/types/chat_boost.rb +16 -0
  158. data/lib/tdlib/types/chat_boost_features.rb +30 -0
  159. data/lib/tdlib/types/chat_boost_level_features.rb +38 -0
  160. data/lib/tdlib/types/chat_boost_link.rb +10 -0
  161. data/lib/tdlib/types/chat_boost_link_info.rb +10 -0
  162. data/lib/tdlib/types/chat_boost_slot.rb +17 -0
  163. data/lib/tdlib/types/chat_boost_slots.rb +8 -0
  164. data/lib/tdlib/types/chat_boost_source/gift_code.rb +11 -0
  165. data/lib/tdlib/types/chat_boost_source/giveaway.rb +17 -0
  166. data/lib/tdlib/types/chat_boost_source/premium.rb +8 -0
  167. data/lib/tdlib/types/chat_boost_source.rb +12 -0
  168. data/lib/tdlib/types/chat_boost_status.rb +31 -0
  169. data/lib/tdlib/types/chat_event.rb +3 -3
  170. data/lib/tdlib/types/chat_event_action/accent_color_changed.rb +14 -0
  171. data/lib/tdlib/types/chat_event_action/active_usernames_changed.rb +10 -0
  172. data/lib/tdlib/types/chat_event_action/available_reactions_changed.rb +10 -0
  173. data/lib/tdlib/types/chat_event_action/background_changed.rb +10 -0
  174. data/lib/tdlib/types/chat_event_action/custom_emoji_sticker_set_changed.rb +10 -0
  175. data/lib/tdlib/types/chat_event_action/emoji_status_changed.rb +10 -0
  176. data/lib/tdlib/types/chat_event_action/forum_topic_created.rb +8 -0
  177. data/lib/tdlib/types/chat_event_action/forum_topic_deleted.rb +8 -0
  178. data/lib/tdlib/types/chat_event_action/forum_topic_edited.rb +10 -0
  179. data/lib/tdlib/types/chat_event_action/forum_topic_pinned.rb +10 -0
  180. data/lib/tdlib/types/chat_event_action/forum_topic_toggle_is_closed.rb +8 -0
  181. data/lib/tdlib/types/chat_event_action/forum_topic_toggle_is_hidden.rb +8 -0
  182. data/lib/tdlib/types/chat_event_action/has_aggressive_anti_spam_enabled_toggled.rb +8 -0
  183. data/lib/tdlib/types/chat_event_action/has_protected_content_toggled.rb +8 -0
  184. data/lib/tdlib/types/chat_event_action/is_forum_toggled.rb +8 -0
  185. data/lib/tdlib/types/chat_event_action/member_joined_by_invite_link.rb +4 -1
  186. data/lib/tdlib/types/chat_event_action/member_joined_by_request.rb +10 -0
  187. data/lib/tdlib/types/chat_event_action/message_auto_delete_time_changed.rb +10 -0
  188. data/lib/tdlib/types/chat_event_action/message_deleted.rb +3 -0
  189. data/lib/tdlib/types/chat_event_action/permissions_changed.rb +1 -1
  190. data/lib/tdlib/types/chat_event_action/profile_accent_color_changed.rb +14 -0
  191. data/lib/tdlib/types/chat_event_action/show_message_sender_toggled.rb +8 -0
  192. data/lib/tdlib/types/chat_event_action/slow_mode_delay_changed.rb +2 -2
  193. data/lib/tdlib/types/chat_event_action/username_changed.rb +1 -1
  194. data/lib/tdlib/types/chat_event_action/video_chat_created.rb +9 -0
  195. data/lib/tdlib/types/chat_event_action/video_chat_ended.rb +9 -0
  196. data/lib/tdlib/types/chat_event_action/{voice_chat_mute_new_participants_toggled.rb → video_chat_mute_new_participants_toggled.rb} +2 -2
  197. data/lib/tdlib/types/chat_event_action/{voice_chat_participant_is_muted_toggled.rb → video_chat_participant_is_muted_toggled.rb} +2 -2
  198. data/lib/tdlib/types/chat_event_action/{voice_chat_participant_volume_level_changed.rb → video_chat_participant_volume_level_changed.rb} +2 -2
  199. data/lib/tdlib/types/chat_event_action.rb +33 -15
  200. data/lib/tdlib/types/chat_event_log_filters.rb +15 -13
  201. data/lib/tdlib/types/chat_folder.rb +45 -0
  202. data/lib/tdlib/types/chat_folder_icon.rb +11 -0
  203. data/lib/tdlib/types/chat_folder_info.rb +19 -0
  204. data/lib/tdlib/types/chat_folder_invite_link.rb +12 -0
  205. data/lib/tdlib/types/chat_folder_invite_link_info.rb +15 -0
  206. data/lib/tdlib/types/chat_folder_invite_links.rb +8 -0
  207. data/lib/tdlib/types/chat_invite_link.rb +17 -3
  208. data/lib/tdlib/types/chat_invite_link_counts.rb +1 -1
  209. data/lib/tdlib/types/chat_invite_link_info.rb +17 -2
  210. data/lib/tdlib/types/chat_invite_link_member.rb +6 -1
  211. data/lib/tdlib/types/chat_invite_link_members.rb +3 -3
  212. data/lib/tdlib/types/chat_invite_link_subscription_info.rb +15 -0
  213. data/lib/tdlib/types/chat_invite_links.rb +1 -1
  214. data/lib/tdlib/types/chat_join_request.rb +12 -0
  215. data/lib/tdlib/types/chat_join_requests.rb +10 -0
  216. data/lib/tdlib/types/chat_join_requests_info.rb +10 -0
  217. data/lib/tdlib/types/chat_list/folder.rb +8 -0
  218. data/lib/tdlib/types/chat_list.rb +1 -1
  219. data/lib/tdlib/types/chat_member.rb +3 -5
  220. data/lib/tdlib/types/chat_member_status/administrator.rb +5 -31
  221. data/lib/tdlib/types/chat_member_status/banned.rb +1 -1
  222. data/lib/tdlib/types/chat_member_status/creator.rb +2 -2
  223. data/lib/tdlib/types/chat_member_status/member.rb +6 -1
  224. data/lib/tdlib/types/chat_members.rb +1 -1
  225. data/lib/tdlib/types/chat_message_sender.rb +10 -0
  226. data/lib/tdlib/types/chat_message_senders.rb +8 -0
  227. data/lib/tdlib/types/chat_notification_settings.rb +30 -15
  228. data/lib/tdlib/types/chat_permissions.rb +19 -11
  229. data/lib/tdlib/types/chat_photo.rb +7 -1
  230. data/lib/tdlib/types/chat_photo_info.rb +2 -0
  231. data/lib/tdlib/types/chat_photo_sticker.rb +12 -0
  232. data/lib/tdlib/types/chat_photo_sticker_type/custom_emoji.rb +8 -0
  233. data/lib/tdlib/types/chat_photo_sticker_type/regular_or_mask.rb +10 -0
  234. data/lib/tdlib/types/chat_photo_sticker_type.rb +11 -0
  235. data/lib/tdlib/types/chat_revenue_amount.rb +17 -0
  236. data/lib/tdlib/types/chat_revenue_statistics.rb +14 -0
  237. data/lib/tdlib/types/chat_revenue_transaction.rb +12 -0
  238. data/lib/tdlib/types/chat_revenue_transaction_type/earnings.rb +10 -0
  239. data/lib/tdlib/types/chat_revenue_transaction_type/refund.rb +10 -0
  240. data/lib/tdlib/types/chat_revenue_transaction_type/withdrawal.rb +12 -0
  241. data/lib/tdlib/types/chat_revenue_transaction_type.rb +12 -0
  242. data/lib/tdlib/types/chat_revenue_transactions.rb +10 -0
  243. data/lib/tdlib/types/chat_statistics/channel.rb +29 -8
  244. data/lib/tdlib/types/chat_statistics_interaction_info.rb +14 -0
  245. data/lib/tdlib/types/chat_statistics_message_sender_info.rb +1 -1
  246. data/lib/tdlib/types/chat_statistics_object_type/message.rb +8 -0
  247. data/lib/tdlib/types/chat_statistics_object_type/story.rb +8 -0
  248. data/lib/tdlib/types/chat_statistics_object_type.rb +11 -0
  249. data/lib/tdlib/types/chat_theme.rb +12 -0
  250. data/lib/tdlib/types/chat_type/basic_group.rb +1 -1
  251. data/lib/tdlib/types/chat_type/secret.rb +1 -1
  252. data/lib/tdlib/types/chat_type/supergroup.rb +1 -2
  253. data/lib/tdlib/types/chat_type.rb +1 -1
  254. data/lib/tdlib/types/chats.rb +1 -1
  255. data/lib/tdlib/types/check_chat_username_result/public_chats_too_many.rb +5 -0
  256. data/lib/tdlib/types/check_chat_username_result/username_purchasable.rb +6 -0
  257. data/lib/tdlib/types/check_chat_username_result.rb +2 -1
  258. data/lib/tdlib/types/check_sticker_set_name_result/name_invalid.rb +5 -0
  259. data/lib/tdlib/types/check_sticker_set_name_result/name_occupied.rb +5 -0
  260. data/lib/tdlib/types/check_sticker_set_name_result/ok.rb +5 -0
  261. data/lib/tdlib/types/check_sticker_set_name_result.rb +12 -0
  262. data/lib/tdlib/types/close_birthday_user.rb +10 -0
  263. data/lib/tdlib/types/collectible_item_info.rb +18 -0
  264. data/lib/tdlib/types/collectible_item_type/phone_number.rb +8 -0
  265. data/lib/tdlib/types/collectible_item_type/username.rb +8 -0
  266. data/lib/tdlib/types/collectible_item_type.rb +11 -0
  267. data/lib/tdlib/types/connected_website.rb +3 -3
  268. data/lib/tdlib/types/connection_state/connecting.rb +1 -1
  269. data/lib/tdlib/types/connection_state/connecting_to_proxy.rb +1 -1
  270. data/lib/tdlib/types/connection_state/updating.rb +1 -1
  271. data/lib/tdlib/types/connection_state/waiting_for_network.rb +1 -1
  272. data/lib/tdlib/types/contact.rb +1 -1
  273. data/lib/tdlib/types/country_info.rb +1 -1
  274. data/lib/tdlib/types/created_basic_group_chat.rb +10 -0
  275. data/lib/tdlib/types/current_weather.rb +10 -0
  276. data/lib/tdlib/types/deep_link_info.rb +2 -2
  277. data/lib/tdlib/types/device_token/apple_push.rb +1 -1
  278. data/lib/tdlib/types/device_token/apple_push_vo_ip.rb +2 -2
  279. data/lib/tdlib/types/device_token/black_berry_push.rb +1 -1
  280. data/lib/tdlib/types/device_token/firebase_cloud_messaging.rb +2 -2
  281. data/lib/tdlib/types/device_token/huawei_push.rb +10 -0
  282. data/lib/tdlib/types/device_token/microsoft_push.rb +1 -1
  283. data/lib/tdlib/types/device_token/microsoft_push_vo_ip.rb +1 -1
  284. data/lib/tdlib/types/device_token/simple_push.rb +1 -1
  285. data/lib/tdlib/types/device_token/tizen_push.rb +1 -1
  286. data/lib/tdlib/types/device_token/ubuntu_push.rb +1 -1
  287. data/lib/tdlib/types/device_token/web_push.rb +1 -1
  288. data/lib/tdlib/types/device_token/windows_push.rb +1 -1
  289. data/lib/tdlib/types/device_token.rb +1 -0
  290. data/lib/tdlib/types/dice_stickers.rb +1 -1
  291. data/lib/tdlib/types/downloaded_file_counts.rb +12 -0
  292. data/lib/tdlib/types/draft_message.rb +7 -4
  293. data/lib/tdlib/types/email_address_authentication/apple_id.rb +8 -0
  294. data/lib/tdlib/types/email_address_authentication/code.rb +8 -0
  295. data/lib/tdlib/types/email_address_authentication/google_id.rb +8 -0
  296. data/lib/tdlib/types/email_address_authentication.rb +12 -0
  297. data/lib/tdlib/types/email_address_reset_state/available.rb +11 -0
  298. data/lib/tdlib/types/email_address_reset_state/pending.rb +10 -0
  299. data/lib/tdlib/types/email_address_reset_state.rb +11 -0
  300. data/lib/tdlib/types/emoji_categories.rb +8 -0
  301. data/lib/tdlib/types/emoji_category.rb +14 -0
  302. data/lib/tdlib/types/emoji_category_source/premium.rb +5 -0
  303. data/lib/tdlib/types/emoji_category_source/search.rb +9 -0
  304. data/lib/tdlib/types/emoji_category_source.rb +11 -0
  305. data/lib/tdlib/types/emoji_category_type/chat_photo.rb +5 -0
  306. data/lib/tdlib/types/emoji_category_type/default.rb +5 -0
  307. data/lib/tdlib/types/emoji_category_type/emoji_status.rb +5 -0
  308. data/lib/tdlib/types/emoji_category_type/regular_stickers.rb +6 -0
  309. data/lib/tdlib/types/emoji_category_type.rb +13 -0
  310. data/lib/tdlib/types/emoji_keyword.rb +10 -0
  311. data/lib/tdlib/types/emoji_keywords.rb +8 -0
  312. data/lib/tdlib/types/emoji_reaction.rb +26 -0
  313. data/lib/tdlib/types/emoji_status.rb +10 -0
  314. data/lib/tdlib/types/emoji_statuses.rb +8 -0
  315. data/lib/tdlib/types/emojis.rb +1 -1
  316. data/lib/tdlib/types/fact_check.rb +11 -0
  317. data/lib/tdlib/types/failed_to_add_member.rb +14 -0
  318. data/lib/tdlib/types/failed_to_add_members.rb +9 -0
  319. data/lib/tdlib/types/file.rb +2 -3
  320. data/lib/tdlib/types/file_download.rb +17 -0
  321. data/lib/tdlib/types/file_downloaded_prefix_size.rb +8 -0
  322. data/lib/tdlib/types/file_type/notification_sound.rb +5 -0
  323. data/lib/tdlib/types/file_type/photo_story.rb +5 -0
  324. data/lib/tdlib/types/file_type/video_story.rb +5 -0
  325. data/lib/tdlib/types/file_type.rb +4 -1
  326. data/lib/tdlib/types/firebase_authentication_settings/android.rb +5 -0
  327. data/lib/tdlib/types/firebase_authentication_settings/ios.rb +10 -0
  328. data/lib/tdlib/types/firebase_authentication_settings.rb +11 -0
  329. data/lib/tdlib/types/firebase_device_verification_parameters/play_integrity.rb +11 -0
  330. data/lib/tdlib/types/firebase_device_verification_parameters/safety_net.rb +8 -0
  331. data/lib/tdlib/types/firebase_device_verification_parameters.rb +11 -0
  332. data/lib/tdlib/types/formatted_text.rb +2 -1
  333. data/lib/tdlib/types/forum_topic.rb +26 -0
  334. data/lib/tdlib/types/forum_topic_icon.rb +10 -0
  335. data/lib/tdlib/types/forum_topic_info.rb +24 -0
  336. data/lib/tdlib/types/forum_topics.rb +16 -0
  337. data/lib/tdlib/types/forward_source.rb +21 -0
  338. data/lib/tdlib/types/found_chat_boosts.rb +13 -0
  339. data/lib/tdlib/types/found_chat_messages.rb +13 -0
  340. data/lib/tdlib/types/found_file_downloads.rb +13 -0
  341. data/lib/tdlib/types/found_messages.rb +2 -2
  342. data/lib/tdlib/types/found_position.rb +8 -0
  343. data/lib/tdlib/types/found_positions.rb +10 -0
  344. data/lib/tdlib/types/found_stories.rb +13 -0
  345. data/lib/tdlib/types/found_users.rb +11 -0
  346. data/lib/tdlib/types/found_web_app.rb +15 -0
  347. data/lib/tdlib/types/game.rb +2 -2
  348. data/lib/tdlib/types/group_call.rb +19 -5
  349. data/lib/tdlib/types/group_call_participant.rb +14 -5
  350. data/lib/tdlib/types/group_call_participant_video_info.rb +14 -0
  351. data/lib/tdlib/types/group_call_stream.rb +13 -0
  352. data/lib/tdlib/types/group_call_streams.rb +8 -0
  353. data/lib/tdlib/types/group_call_video_quality/full.rb +5 -0
  354. data/lib/tdlib/types/group_call_video_quality/medium.rb +5 -0
  355. data/lib/tdlib/types/group_call_video_quality/thumbnail.rb +5 -0
  356. data/lib/tdlib/types/group_call_video_quality.rb +12 -0
  357. data/lib/tdlib/types/group_call_video_source_group.rb +10 -0
  358. data/lib/tdlib/types/identity_document.rb +5 -4
  359. data/lib/tdlib/types/imported_contacts.rb +1 -1
  360. data/lib/tdlib/types/inline_keyboard_button_type/callback_with_password.rb +2 -1
  361. data/lib/tdlib/types/inline_keyboard_button_type/login_url.rb +2 -2
  362. data/lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb +2 -2
  363. data/lib/tdlib/types/inline_keyboard_button_type/url.rb +1 -0
  364. data/lib/tdlib/types/inline_keyboard_button_type/user.rb +8 -0
  365. data/lib/tdlib/types/inline_keyboard_button_type/web_app.rb +8 -0
  366. data/lib/tdlib/types/inline_keyboard_button_type.rb +3 -1
  367. data/lib/tdlib/types/inline_query_results.rb +5 -8
  368. data/lib/tdlib/types/inline_query_results_button.rb +10 -0
  369. data/lib/tdlib/types/inline_query_results_button_type/start_bot.rb +9 -0
  370. data/lib/tdlib/types/inline_query_results_button_type/web_app.rb +8 -0
  371. data/lib/tdlib/types/inline_query_results_button_type.rb +11 -0
  372. data/lib/tdlib/types/input_background/previous.rb +8 -0
  373. data/lib/tdlib/types/input_background.rb +1 -0
  374. data/lib/tdlib/types/input_business_chat_link.rb +10 -0
  375. data/lib/tdlib/types/input_business_start_page.rb +15 -0
  376. data/lib/tdlib/types/input_chat_photo/animation.rb +1 -1
  377. data/lib/tdlib/types/input_chat_photo/sticker.rb +8 -0
  378. data/lib/tdlib/types/input_chat_photo.rb +1 -0
  379. data/lib/tdlib/types/input_credentials/new.rb +1 -1
  380. data/lib/tdlib/types/input_file/generated.rb +2 -2
  381. data/lib/tdlib/types/input_file/id.rb +1 -1
  382. data/lib/tdlib/types/input_file/remote.rb +3 -3
  383. data/lib/tdlib/types/input_identity_document.rb +6 -5
  384. data/lib/tdlib/types/input_inline_query_result/animation.rb +2 -3
  385. data/lib/tdlib/types/input_inline_query_result/article.rb +1 -1
  386. data/lib/tdlib/types/input_inline_query_result/audio.rb +1 -1
  387. data/lib/tdlib/types/input_inline_query_result/contact.rb +1 -1
  388. data/lib/tdlib/types/input_inline_query_result/document.rb +1 -1
  389. data/lib/tdlib/types/input_inline_query_result/game.rb +1 -1
  390. data/lib/tdlib/types/input_inline_query_result/location.rb +1 -1
  391. data/lib/tdlib/types/input_inline_query_result/photo.rb +1 -1
  392. data/lib/tdlib/types/input_inline_query_result/sticker.rb +4 -3
  393. data/lib/tdlib/types/input_inline_query_result/venue.rb +1 -1
  394. data/lib/tdlib/types/input_inline_query_result/video.rb +1 -1
  395. data/lib/tdlib/types/input_inline_query_result/voice_note.rb +1 -1
  396. data/lib/tdlib/types/input_invoice/message.rb +10 -0
  397. data/lib/tdlib/types/input_invoice/name.rb +8 -0
  398. data/lib/tdlib/types/input_invoice/telegram.rb +8 -0
  399. data/lib/tdlib/types/input_invoice.rb +12 -0
  400. data/lib/tdlib/types/input_message_content/animation.rb +10 -3
  401. data/lib/tdlib/types/input_message_content/audio.rb +5 -3
  402. data/lib/tdlib/types/input_message_content/dice.rb +1 -1
  403. data/lib/tdlib/types/input_message_content/document.rb +6 -5
  404. data/lib/tdlib/types/input_message_content/forwarded.rb +4 -3
  405. data/lib/tdlib/types/input_message_content/invoice.rb +7 -2
  406. data/lib/tdlib/types/input_message_content/location.rb +2 -2
  407. data/lib/tdlib/types/input_message_content/paid_media.rb +17 -0
  408. data/lib/tdlib/types/input_message_content/photo.rb +16 -6
  409. data/lib/tdlib/types/input_message_content/poll.rb +7 -5
  410. data/lib/tdlib/types/input_message_content/sticker.rb +2 -2
  411. data/lib/tdlib/types/input_message_content/story.rb +12 -0
  412. data/lib/tdlib/types/input_message_content/text.rb +7 -7
  413. data/lib/tdlib/types/input_message_content/video.rb +14 -7
  414. data/lib/tdlib/types/input_message_content/video_note.rb +6 -2
  415. data/lib/tdlib/types/input_message_content/voice_note.rb +9 -3
  416. data/lib/tdlib/types/input_message_content.rb +2 -0
  417. data/lib/tdlib/types/input_message_reply_to/external_message.rb +13 -0
  418. data/lib/tdlib/types/input_message_reply_to/message.rb +12 -0
  419. data/lib/tdlib/types/input_message_reply_to/story.rb +11 -0
  420. data/lib/tdlib/types/input_message_reply_to.rb +12 -0
  421. data/lib/tdlib/types/input_paid_media.rb +18 -0
  422. data/lib/tdlib/types/input_paid_media_type/photo.rb +8 -0
  423. data/lib/tdlib/types/input_paid_media_type/video.rb +10 -0
  424. data/lib/tdlib/types/input_paid_media_type.rb +11 -0
  425. data/lib/tdlib/types/input_sticker.rb +15 -7
  426. data/lib/tdlib/types/input_story_area.rb +10 -0
  427. data/lib/tdlib/types/input_story_area_type/found_venue.rb +10 -0
  428. data/lib/tdlib/types/input_story_area_type/link.rb +8 -0
  429. data/lib/tdlib/types/input_story_area_type/location.rb +10 -0
  430. data/lib/tdlib/types/input_story_area_type/message.rb +12 -0
  431. data/lib/tdlib/types/input_story_area_type/previous_venue.rb +10 -0
  432. data/lib/tdlib/types/input_story_area_type/suggested_reaction.rb +12 -0
  433. data/lib/tdlib/types/input_story_area_type/weather.rb +12 -0
  434. data/lib/tdlib/types/input_story_area_type.rb +16 -0
  435. data/lib/tdlib/types/input_story_areas.rb +13 -0
  436. data/lib/tdlib/types/input_story_content/photo.rb +12 -0
  437. data/lib/tdlib/types/input_story_content/video.rb +19 -0
  438. data/lib/tdlib/types/input_story_content.rb +11 -0
  439. data/lib/tdlib/types/input_text_quote.rb +12 -0
  440. data/lib/tdlib/types/internal_link_type/active_sessions.rb +6 -0
  441. data/lib/tdlib/types/internal_link_type/attachment_menu_bot.rb +21 -0
  442. data/lib/tdlib/types/internal_link_type/authentication_code.rb +9 -0
  443. data/lib/tdlib/types/internal_link_type/background.rb +10 -0
  444. data/lib/tdlib/types/internal_link_type/bot_add_to_channel.rb +16 -0
  445. data/lib/tdlib/types/internal_link_type/bot_start.rb +15 -0
  446. data/lib/tdlib/types/internal_link_type/bot_start_in_group.rb +23 -0
  447. data/lib/tdlib/types/internal_link_type/business_chat.rb +10 -0
  448. data/lib/tdlib/types/internal_link_type/buy_stars.rb +12 -0
  449. data/lib/tdlib/types/internal_link_type/change_phone_number.rb +5 -0
  450. data/lib/tdlib/types/internal_link_type/chat_boost.rb +12 -0
  451. data/lib/tdlib/types/internal_link_type/chat_folder_invite.rb +10 -0
  452. data/lib/tdlib/types/internal_link_type/chat_folder_settings.rb +5 -0
  453. data/lib/tdlib/types/internal_link_type/chat_invite.rb +10 -0
  454. data/lib/tdlib/types/internal_link_type/default_message_auto_delete_timer_settings.rb +5 -0
  455. data/lib/tdlib/types/internal_link_type/edit_profile_settings.rb +5 -0
  456. data/lib/tdlib/types/internal_link_type/game.rb +12 -0
  457. data/lib/tdlib/types/internal_link_type/instant_view.rb +12 -0
  458. data/lib/tdlib/types/internal_link_type/invoice.rb +9 -0
  459. data/lib/tdlib/types/internal_link_type/language_pack.rb +11 -0
  460. data/lib/tdlib/types/internal_link_type/language_settings.rb +5 -0
  461. data/lib/tdlib/types/internal_link_type/main_web_app.rb +18 -0
  462. data/lib/tdlib/types/internal_link_type/message.rb +10 -0
  463. data/lib/tdlib/types/internal_link_type/message_draft.rb +13 -0
  464. data/lib/tdlib/types/internal_link_type/passport_data_request.rb +22 -0
  465. data/lib/tdlib/types/internal_link_type/phone_number_confirmation.rb +13 -0
  466. data/lib/tdlib/types/internal_link_type/premium_features.rb +10 -0
  467. data/lib/tdlib/types/internal_link_type/premium_gift.rb +9 -0
  468. data/lib/tdlib/types/internal_link_type/premium_gift_code.rb +10 -0
  469. data/lib/tdlib/types/internal_link_type/privacy_and_security_settings.rb +5 -0
  470. data/lib/tdlib/types/internal_link_type/proxy.rb +13 -0
  471. data/lib/tdlib/types/internal_link_type/public_chat.rb +17 -0
  472. data/lib/tdlib/types/internal_link_type/qr_code_authentication.rb +8 -0
  473. data/lib/tdlib/types/internal_link_type/restore_purchases.rb +6 -0
  474. data/lib/tdlib/types/internal_link_type/settings.rb +5 -0
  475. data/lib/tdlib/types/internal_link_type/sticker_set.rb +12 -0
  476. data/lib/tdlib/types/internal_link_type/story.rb +12 -0
  477. data/lib/tdlib/types/internal_link_type/theme.rb +9 -0
  478. data/lib/tdlib/types/internal_link_type/theme_settings.rb +5 -0
  479. data/lib/tdlib/types/internal_link_type/unknown_deep_link.rb +9 -0
  480. data/lib/tdlib/types/internal_link_type/unsupported_proxy.rb +6 -0
  481. data/lib/tdlib/types/internal_link_type/user_phone_number.rb +16 -0
  482. data/lib/tdlib/types/internal_link_type/user_token.rb +10 -0
  483. data/lib/tdlib/types/internal_link_type/video_chat.rb +16 -0
  484. data/lib/tdlib/types/internal_link_type/web_app.rb +21 -0
  485. data/lib/tdlib/types/internal_link_type.rb +54 -0
  486. data/lib/tdlib/types/invite_link_chat_type/basic_group.rb +5 -0
  487. data/lib/tdlib/types/invite_link_chat_type/channel.rb +5 -0
  488. data/lib/tdlib/types/invite_link_chat_type/supergroup.rb +5 -0
  489. data/lib/tdlib/types/invite_link_chat_type.rb +12 -0
  490. data/lib/tdlib/types/invoice.rb +8 -0
  491. data/lib/tdlib/types/keyboard_button_type/request_chat.rb +41 -0
  492. data/lib/tdlib/types/keyboard_button_type/request_users.rb +28 -0
  493. data/lib/tdlib/types/keyboard_button_type/text.rb +1 -1
  494. data/lib/tdlib/types/keyboard_button_type/web_app.rb +8 -0
  495. data/lib/tdlib/types/keyboard_button_type.rb +3 -0
  496. data/lib/tdlib/types/language_pack_info.rb +2 -2
  497. data/lib/tdlib/types/language_pack_string.rb +2 -1
  498. data/lib/tdlib/types/language_pack_string_value/deleted.rb +1 -1
  499. data/lib/tdlib/types/language_pack_string_value/pluralized.rb +1 -1
  500. data/lib/tdlib/types/link_preview.rb +35 -0
  501. data/lib/tdlib/types/link_preview_album_media/photo.rb +8 -0
  502. data/lib/tdlib/types/link_preview_album_media/video.rb +8 -0
  503. data/lib/tdlib/types/link_preview_album_media.rb +11 -0
  504. data/lib/tdlib/types/link_preview_options.rb +20 -0
  505. data/lib/tdlib/types/link_preview_type/album.rb +10 -0
  506. data/lib/tdlib/types/link_preview_type/animation.rb +10 -0
  507. data/lib/tdlib/types/link_preview_type/app.rb +10 -0
  508. data/lib/tdlib/types/link_preview_type/article.rb +10 -0
  509. data/lib/tdlib/types/link_preview_type/audio.rb +16 -0
  510. data/lib/tdlib/types/link_preview_type/background.rb +11 -0
  511. data/lib/tdlib/types/link_preview_type/channel_boost.rb +8 -0
  512. data/lib/tdlib/types/link_preview_type/chat.rb +12 -0
  513. data/lib/tdlib/types/link_preview_type/document.rb +10 -0
  514. data/lib/tdlib/types/link_preview_type/embedded_animation_player.rb +18 -0
  515. data/lib/tdlib/types/link_preview_type/embedded_audio_player.rb +18 -0
  516. data/lib/tdlib/types/link_preview_type/embedded_video_player.rb +18 -0
  517. data/lib/tdlib/types/link_preview_type/invoice.rb +5 -0
  518. data/lib/tdlib/types/link_preview_type/message.rb +5 -0
  519. data/lib/tdlib/types/link_preview_type/photo.rb +10 -0
  520. data/lib/tdlib/types/link_preview_type/premium_gift_code.rb +5 -0
  521. data/lib/tdlib/types/link_preview_type/shareable_chat_folder.rb +5 -0
  522. data/lib/tdlib/types/link_preview_type/sticker.rb +9 -0
  523. data/lib/tdlib/types/link_preview_type/sticker_set.rb +8 -0
  524. data/lib/tdlib/types/link_preview_type/story.rb +11 -0
  525. data/lib/tdlib/types/link_preview_type/supergroup_boost.rb +8 -0
  526. data/lib/tdlib/types/link_preview_type/theme.rb +11 -0
  527. data/lib/tdlib/types/link_preview_type/unsupported.rb +5 -0
  528. data/lib/tdlib/types/link_preview_type/user.rb +10 -0
  529. data/lib/tdlib/types/link_preview_type/video.rb +20 -0
  530. data/lib/tdlib/types/link_preview_type/video_chat.rb +11 -0
  531. data/lib/tdlib/types/link_preview_type/video_note.rb +8 -0
  532. data/lib/tdlib/types/link_preview_type/voice_note.rb +8 -0
  533. data/lib/tdlib/types/link_preview_type/web_app.rb +8 -0
  534. data/lib/tdlib/types/link_preview_type.rb +38 -0
  535. data/lib/tdlib/types/local_file.rb +4 -4
  536. data/lib/tdlib/types/location_address.rb +14 -0
  537. data/lib/tdlib/types/log_stream/file.rb +1 -1
  538. data/lib/tdlib/types/login_url_info/open.rb +3 -3
  539. data/lib/tdlib/types/login_url_info/request_confirmation.rb +2 -2
  540. data/lib/tdlib/types/main_web_app.rb +11 -0
  541. data/lib/tdlib/types/mask_point/chin.rb +1 -1
  542. data/lib/tdlib/types/mask_point/eyes.rb +1 -1
  543. data/lib/tdlib/types/mask_point/forehead.rb +1 -1
  544. data/lib/tdlib/types/mask_point/mouth.rb +1 -1
  545. data/lib/tdlib/types/mask_point.rb +1 -1
  546. data/lib/tdlib/types/mask_position.rb +2 -2
  547. data/lib/tdlib/types/message.rb +57 -37
  548. data/lib/tdlib/types/message_auto_delete_time.rb +9 -0
  549. data/lib/tdlib/types/message_calendar.rb +10 -0
  550. data/lib/tdlib/types/message_calendar_day.rb +10 -0
  551. data/lib/tdlib/types/message_content/animated_emoji.rb +10 -0
  552. data/lib/tdlib/types/message_content/animation.rb +5 -0
  553. data/lib/tdlib/types/message_content/bot_write_access_allowed.rb +8 -0
  554. data/lib/tdlib/types/message_content/chat_boost.rb +8 -0
  555. data/lib/tdlib/types/message_content/chat_join_by_link.rb +1 -1
  556. data/lib/tdlib/types/message_content/chat_join_by_request.rb +5 -0
  557. data/lib/tdlib/types/message_content/chat_set_background.rb +14 -0
  558. data/lib/tdlib/types/message_content/chat_set_message_auto_delete_time.rb +10 -0
  559. data/lib/tdlib/types/message_content/chat_set_theme.rb +9 -0
  560. data/lib/tdlib/types/message_content/chat_shared.rb +10 -0
  561. data/lib/tdlib/types/message_content/dice.rb +2 -2
  562. data/lib/tdlib/types/message_content/expired_photo.rb +1 -1
  563. data/lib/tdlib/types/message_content/expired_video.rb +1 -1
  564. data/lib/tdlib/types/message_content/expired_video_note.rb +5 -0
  565. data/lib/tdlib/types/message_content/expired_voice_note.rb +5 -0
  566. data/lib/tdlib/types/message_content/forum_topic_created.rb +10 -0
  567. data/lib/tdlib/types/message_content/forum_topic_edited.rb +13 -0
  568. data/lib/tdlib/types/message_content/forum_topic_is_closed_toggled.rb +8 -0
  569. data/lib/tdlib/types/message_content/forum_topic_is_hidden_toggled.rb +8 -0
  570. data/lib/tdlib/types/message_content/gifted_premium.rb +24 -0
  571. data/lib/tdlib/types/message_content/gifted_stars.rb +26 -0
  572. data/lib/tdlib/types/message_content/invite_video_chat_participants.rb +11 -0
  573. data/lib/tdlib/types/message_content/invoice.rb +9 -9
  574. data/lib/tdlib/types/message_content/location.rb +4 -3
  575. data/lib/tdlib/types/message_content/paid_media.rb +15 -0
  576. data/lib/tdlib/types/message_content/passport_data_sent.rb +1 -1
  577. data/lib/tdlib/types/message_content/payment_refunded.rb +18 -0
  578. data/lib/tdlib/types/message_content/payment_successful.rb +9 -3
  579. data/lib/tdlib/types/message_content/payment_successful_bot.rb +4 -0
  580. data/lib/tdlib/types/message_content/photo.rb +6 -1
  581. data/lib/tdlib/types/message_content/premium_gift_code.rb +29 -0
  582. data/lib/tdlib/types/message_content/premium_giveaway.rb +15 -0
  583. data/lib/tdlib/types/message_content/premium_giveaway_completed.rb +13 -0
  584. data/lib/tdlib/types/message_content/premium_giveaway_created.rb +6 -0
  585. data/lib/tdlib/types/message_content/premium_giveaway_winners.rb +31 -0
  586. data/lib/tdlib/types/message_content/proximity_alert_triggered.rb +5 -4
  587. data/lib/tdlib/types/message_content/sticker.rb +2 -0
  588. data/lib/tdlib/types/message_content/story.rb +12 -0
  589. data/lib/tdlib/types/message_content/suggest_profile_photo.rb +9 -0
  590. data/lib/tdlib/types/message_content/text.rb +5 -2
  591. data/lib/tdlib/types/message_content/unsupported.rb +1 -1
  592. data/lib/tdlib/types/message_content/users_shared.rb +10 -0
  593. data/lib/tdlib/types/message_content/video.rb +5 -0
  594. data/lib/tdlib/types/message_content/video_chat_ended.rb +8 -0
  595. data/lib/tdlib/types/message_content/{voice_chat_scheduled.rb → video_chat_scheduled.rb} +4 -4
  596. data/lib/tdlib/types/message_content/video_chat_started.rb +9 -0
  597. data/lib/tdlib/types/message_content/web_app_data_received.rb +11 -0
  598. data/lib/tdlib/types/message_content/web_app_data_sent.rb +9 -0
  599. data/lib/tdlib/types/message_content.rb +34 -8
  600. data/lib/tdlib/types/message_copy_options.rb +11 -6
  601. data/lib/tdlib/types/message_effect.rb +16 -0
  602. data/lib/tdlib/types/message_effect_type/emoji_reaction.rb +10 -0
  603. data/lib/tdlib/types/message_effect_type/premium_sticker.rb +9 -0
  604. data/lib/tdlib/types/message_effect_type.rb +11 -0
  605. data/lib/tdlib/types/message_file_type/group.rb +1 -1
  606. data/lib/tdlib/types/message_file_type/private.rb +1 -1
  607. data/lib/tdlib/types/message_file_type/unknown.rb +1 -1
  608. data/lib/tdlib/types/message_forward_info.rb +7 -11
  609. data/lib/tdlib/types/message_import_info.rb +10 -0
  610. data/lib/tdlib/types/message_interaction_info.rb +4 -2
  611. data/lib/tdlib/types/message_link.rb +2 -2
  612. data/lib/tdlib/types/message_link_info.rb +10 -5
  613. data/lib/tdlib/types/{message_forward_origin → message_origin}/channel.rb +2 -2
  614. data/lib/tdlib/types/message_origin/chat.rb +11 -0
  615. data/lib/tdlib/types/{message_forward_origin → message_origin}/hidden_user.rb +1 -1
  616. data/lib/tdlib/types/{message_forward_origin → message_origin}/user.rb +1 -1
  617. data/lib/tdlib/types/message_origin.rb +13 -0
  618. data/lib/tdlib/types/message_position.rb +12 -0
  619. data/lib/tdlib/types/message_positions.rb +10 -0
  620. data/lib/tdlib/types/message_properties.rb +72 -0
  621. data/lib/tdlib/types/message_reaction.rb +18 -0
  622. data/lib/tdlib/types/message_reactions.rb +15 -0
  623. data/lib/tdlib/types/message_read_date/my_privacy_restricted.rb +6 -0
  624. data/lib/tdlib/types/message_read_date/read.rb +8 -0
  625. data/lib/tdlib/types/message_read_date/too_old.rb +5 -0
  626. data/lib/tdlib/types/message_read_date/unread.rb +5 -0
  627. data/lib/tdlib/types/message_read_date/user_privacy_restricted.rb +5 -0
  628. data/lib/tdlib/types/message_read_date.rb +14 -0
  629. data/lib/tdlib/types/message_reply_info.rb +4 -3
  630. data/lib/tdlib/types/message_reply_to/message.rb +26 -0
  631. data/lib/tdlib/types/message_reply_to/story.rb +10 -0
  632. data/lib/tdlib/types/message_reply_to.rb +11 -0
  633. data/lib/tdlib/types/message_scheduling_state/send_at_date.rb +1 -1
  634. data/lib/tdlib/types/message_scheduling_state/send_when_online.rb +2 -2
  635. data/lib/tdlib/types/message_self_destruct_type/immediately.rb +5 -0
  636. data/lib/tdlib/types/message_self_destruct_type/timer.rb +9 -0
  637. data/lib/tdlib/types/message_self_destruct_type.rb +11 -0
  638. data/lib/tdlib/types/message_send_options.rb +17 -1
  639. data/lib/tdlib/types/message_senders.rb +1 -1
  640. data/lib/tdlib/types/message_sending_state/failed.rb +12 -5
  641. data/lib/tdlib/types/message_sending_state/pending.rb +3 -0
  642. data/lib/tdlib/types/message_source/chat_event_log.rb +5 -0
  643. data/lib/tdlib/types/message_source/chat_history.rb +5 -0
  644. data/lib/tdlib/types/message_source/chat_list.rb +5 -0
  645. data/lib/tdlib/types/message_source/forum_topic_history.rb +5 -0
  646. data/lib/tdlib/types/message_source/history_preview.rb +5 -0
  647. data/lib/tdlib/types/message_source/message_thread_history.rb +5 -0
  648. data/lib/tdlib/types/message_source/notification.rb +5 -0
  649. data/lib/tdlib/types/message_source/other.rb +5 -0
  650. data/lib/tdlib/types/message_source/screenshot.rb +6 -0
  651. data/lib/tdlib/types/message_source/search.rb +6 -0
  652. data/lib/tdlib/types/message_source.rb +19 -0
  653. data/lib/tdlib/types/message_sponsor.rb +13 -0
  654. data/lib/tdlib/types/message_statistics.rb +2 -0
  655. data/lib/tdlib/types/message_thread_info.rb +7 -4
  656. data/lib/tdlib/types/message_viewer.rb +10 -0
  657. data/lib/tdlib/types/message_viewers.rb +8 -0
  658. data/lib/tdlib/types/messages.rb +1 -1
  659. data/lib/tdlib/types/network_statistics_entry/file.rb +2 -1
  660. data/lib/tdlib/types/network_type.rb +1 -1
  661. data/lib/tdlib/types/new_chat_privacy_settings.rb +10 -0
  662. data/lib/tdlib/types/notification.rb +1 -1
  663. data/lib/tdlib/types/notification_settings_scope/channel_chats.rb +1 -1
  664. data/lib/tdlib/types/notification_settings_scope/group_chats.rb +2 -2
  665. data/lib/tdlib/types/notification_settings_scope.rb +1 -1
  666. data/lib/tdlib/types/notification_sound.rb +18 -0
  667. data/lib/tdlib/types/notification_sounds.rb +8 -0
  668. data/lib/tdlib/types/notification_type/new_message.rb +2 -0
  669. data/lib/tdlib/types/notification_type/new_push_message.rb +4 -4
  670. data/lib/tdlib/types/page_block/animation.rb +1 -1
  671. data/lib/tdlib/types/page_block/chat_link.rb +3 -1
  672. data/lib/tdlib/types/page_block/embedded.rb +3 -3
  673. data/lib/tdlib/types/page_block/embedded_post.rb +1 -1
  674. data/lib/tdlib/types/page_block/preformatted.rb +1 -1
  675. data/lib/tdlib/types/page_block/video.rb +2 -2
  676. data/lib/tdlib/types/page_block.rb +1 -1
  677. data/lib/tdlib/types/page_block_caption.rb +1 -1
  678. data/lib/tdlib/types/page_block_horizontal_alignment/center.rb +1 -1
  679. data/lib/tdlib/types/page_block_horizontal_alignment/left.rb +1 -1
  680. data/lib/tdlib/types/page_block_horizontal_alignment/right.rb +1 -1
  681. data/lib/tdlib/types/page_block_table_cell.rb +3 -3
  682. data/lib/tdlib/types/page_block_vertical_alignment/bottom.rb +1 -1
  683. data/lib/tdlib/types/page_block_vertical_alignment/middle.rb +1 -1
  684. data/lib/tdlib/types/page_block_vertical_alignment/top.rb +1 -1
  685. data/lib/tdlib/types/paid_media/photo.rb +8 -0
  686. data/lib/tdlib/types/paid_media/preview.rb +14 -0
  687. data/lib/tdlib/types/paid_media/unsupported.rb +5 -0
  688. data/lib/tdlib/types/paid_media/video.rb +8 -0
  689. data/lib/tdlib/types/paid_media.rb +13 -0
  690. data/lib/tdlib/types/paid_reactor.rb +18 -0
  691. data/lib/tdlib/types/passport_authorization_form.rb +2 -2
  692. data/lib/tdlib/types/passport_element_type.rb +1 -1
  693. data/lib/tdlib/types/password_state.rb +5 -0
  694. data/lib/tdlib/types/payment_form.rb +4 -19
  695. data/lib/tdlib/types/payment_form_type/regular.rb +23 -0
  696. data/lib/tdlib/types/payment_form_type/stars.rb +8 -0
  697. data/lib/tdlib/types/payment_form_type.rb +11 -0
  698. data/lib/tdlib/types/payment_option.rb +10 -0
  699. data/lib/tdlib/types/payment_provider/other.rb +8 -0
  700. data/lib/tdlib/types/payment_provider/smart_glocal.rb +10 -0
  701. data/lib/tdlib/types/{payments_provider_stripe.rb → payment_provider/stripe.rb} +1 -1
  702. data/lib/tdlib/types/payment_provider.rb +12 -0
  703. data/lib/tdlib/types/payment_receipt.rb +4 -18
  704. data/lib/tdlib/types/payment_receipt_type/regular.rb +18 -0
  705. data/lib/tdlib/types/payment_receipt_type/stars.rb +10 -0
  706. data/lib/tdlib/types/payment_receipt_type.rb +11 -0
  707. data/lib/tdlib/types/payment_result.rb +2 -2
  708. data/lib/tdlib/types/phone_number_authentication_settings.rb +14 -1
  709. data/lib/tdlib/types/phone_number_code_type/change.rb +6 -0
  710. data/lib/tdlib/types/phone_number_code_type/confirm_ownership.rb +9 -0
  711. data/lib/tdlib/types/phone_number_code_type/verify.rb +5 -0
  712. data/lib/tdlib/types/phone_number_code_type.rb +12 -0
  713. data/lib/tdlib/types/phone_number_info.rb +5 -0
  714. data/lib/tdlib/types/photo_size.rb +1 -1
  715. data/lib/tdlib/types/poll.rb +7 -5
  716. data/lib/tdlib/types/poll_option.rb +3 -2
  717. data/lib/tdlib/types/poll_type.rb +1 -1
  718. data/lib/tdlib/types/premium_feature/accent_color.rb +5 -0
  719. data/lib/tdlib/types/premium_feature/advanced_chat_management.rb +6 -0
  720. data/lib/tdlib/types/premium_feature/animated_profile_photo.rb +5 -0
  721. data/lib/tdlib/types/premium_feature/app_icons.rb +5 -0
  722. data/lib/tdlib/types/premium_feature/background_for_both.rb +5 -0
  723. data/lib/tdlib/types/premium_feature/business.rb +5 -0
  724. data/lib/tdlib/types/premium_feature/chat_boost.rb +5 -0
  725. data/lib/tdlib/types/premium_feature/custom_emoji.rb +5 -0
  726. data/lib/tdlib/types/premium_feature/disabled_ads.rb +5 -0
  727. data/lib/tdlib/types/premium_feature/emoji_status.rb +5 -0
  728. data/lib/tdlib/types/premium_feature/forum_topic_icon.rb +5 -0
  729. data/lib/tdlib/types/premium_feature/improved_download_speed.rb +5 -0
  730. data/lib/tdlib/types/premium_feature/increased_limits.rb +5 -0
  731. data/lib/tdlib/types/premium_feature/increased_upload_file_size.rb +5 -0
  732. data/lib/tdlib/types/premium_feature/last_seen_times.rb +6 -0
  733. data/lib/tdlib/types/premium_feature/message_effects.rb +5 -0
  734. data/lib/tdlib/types/premium_feature/message_privacy.rb +7 -0
  735. data/lib/tdlib/types/premium_feature/profile_badge.rb +5 -0
  736. data/lib/tdlib/types/premium_feature/real_time_chat_translation.rb +5 -0
  737. data/lib/tdlib/types/premium_feature/saved_messages_tags.rb +5 -0
  738. data/lib/tdlib/types/premium_feature/unique_reactions.rb +5 -0
  739. data/lib/tdlib/types/premium_feature/unique_stickers.rb +5 -0
  740. data/lib/tdlib/types/premium_feature/upgraded_stories.rb +5 -0
  741. data/lib/tdlib/types/premium_feature/voice_recognition.rb +5 -0
  742. data/lib/tdlib/types/premium_feature.rb +33 -0
  743. data/lib/tdlib/types/premium_feature_promotion_animation.rb +10 -0
  744. data/lib/tdlib/types/premium_features.rb +13 -0
  745. data/lib/tdlib/types/premium_gift_code_info.rb +25 -0
  746. data/lib/tdlib/types/premium_gift_code_payment_option.rb +20 -0
  747. data/lib/tdlib/types/premium_gift_code_payment_options.rb +8 -0
  748. data/lib/tdlib/types/premium_giveaway_info/completed.rb +20 -0
  749. data/lib/tdlib/types/premium_giveaway_info/ongoing.rb +12 -0
  750. data/lib/tdlib/types/premium_giveaway_info.rb +11 -0
  751. data/lib/tdlib/types/premium_giveaway_parameters.rb +31 -0
  752. data/lib/tdlib/types/premium_giveaway_participant_status/administrator.rb +9 -0
  753. data/lib/tdlib/types/premium_giveaway_participant_status/already_was_member.rb +8 -0
  754. data/lib/tdlib/types/premium_giveaway_participant_status/disallowed_country.rb +8 -0
  755. data/lib/tdlib/types/premium_giveaway_participant_status/eligible.rb +5 -0
  756. data/lib/tdlib/types/premium_giveaway_participant_status/participating.rb +5 -0
  757. data/lib/tdlib/types/premium_giveaway_participant_status.rb +14 -0
  758. data/lib/tdlib/types/premium_limit.rb +12 -0
  759. data/lib/tdlib/types/premium_limit_type/active_story_count.rb +5 -0
  760. data/lib/tdlib/types/premium_limit_type/bio_length.rb +5 -0
  761. data/lib/tdlib/types/premium_limit_type/caption_length.rb +5 -0
  762. data/lib/tdlib/types/premium_limit_type/chat_folder_chosen_chat_count.rb +5 -0
  763. data/lib/tdlib/types/premium_limit_type/chat_folder_count.rb +5 -0
  764. data/lib/tdlib/types/premium_limit_type/chat_folder_invite_link_count.rb +5 -0
  765. data/lib/tdlib/types/premium_limit_type/created_public_chat_count.rb +5 -0
  766. data/lib/tdlib/types/premium_limit_type/favorite_sticker_count.rb +5 -0
  767. data/lib/tdlib/types/premium_limit_type/monthly_sent_story_count.rb +5 -0
  768. data/lib/tdlib/types/premium_limit_type/pinned_archived_chat_count.rb +5 -0
  769. data/lib/tdlib/types/premium_limit_type/pinned_chat_count.rb +5 -0
  770. data/lib/tdlib/types/premium_limit_type/pinned_saved_messages_topic_count.rb +5 -0
  771. data/lib/tdlib/types/premium_limit_type/saved_animation_count.rb +5 -0
  772. data/lib/tdlib/types/premium_limit_type/shareable_chat_folder_count.rb +5 -0
  773. data/lib/tdlib/types/premium_limit_type/similar_chat_count.rb +5 -0
  774. data/lib/tdlib/types/premium_limit_type/story_caption_length.rb +5 -0
  775. data/lib/tdlib/types/premium_limit_type/story_suggested_reaction_area_count.rb +5 -0
  776. data/lib/tdlib/types/premium_limit_type/supergroup_count.rb +5 -0
  777. data/lib/tdlib/types/premium_limit_type/weekly_sent_story_count.rb +5 -0
  778. data/lib/tdlib/types/premium_limit_type.rb +28 -0
  779. data/lib/tdlib/types/premium_payment_option.rb +19 -0
  780. data/lib/tdlib/types/premium_source/business_feature.rb +8 -0
  781. data/lib/tdlib/types/premium_source/feature.rb +8 -0
  782. data/lib/tdlib/types/premium_source/limit_exceeded.rb +8 -0
  783. data/lib/tdlib/types/premium_source/link.rb +8 -0
  784. data/lib/tdlib/types/premium_source/settings.rb +5 -0
  785. data/lib/tdlib/types/premium_source/story_feature.rb +8 -0
  786. data/lib/tdlib/types/premium_source.rb +15 -0
  787. data/lib/tdlib/types/premium_state.rb +18 -0
  788. data/lib/tdlib/types/premium_state_payment_option.rb +16 -0
  789. data/lib/tdlib/types/premium_story_feature/custom_expiration_duration.rb +5 -0
  790. data/lib/tdlib/types/premium_story_feature/links_and_formatting.rb +5 -0
  791. data/lib/tdlib/types/premium_story_feature/permanent_views_history.rb +5 -0
  792. data/lib/tdlib/types/premium_story_feature/priority_order.rb +5 -0
  793. data/lib/tdlib/types/premium_story_feature/save_stories.rb +5 -0
  794. data/lib/tdlib/types/premium_story_feature/stealth_mode.rb +5 -0
  795. data/lib/tdlib/types/premium_story_feature/video_quality.rb +5 -0
  796. data/lib/tdlib/types/premium_story_feature.rb +16 -0
  797. data/lib/tdlib/types/prepaid_premium_giveaway.rb +15 -0
  798. data/lib/tdlib/types/product_info.rb +12 -0
  799. data/lib/tdlib/types/profile_accent_color.rb +18 -0
  800. data/lib/tdlib/types/profile_accent_colors.rb +15 -0
  801. data/lib/tdlib/types/profile_photo.rb +2 -0
  802. data/lib/tdlib/types/proxy.rb +1 -1
  803. data/lib/tdlib/types/proxy_type.rb +1 -1
  804. data/lib/tdlib/types/public_chat_type/has_username.rb +1 -1
  805. data/lib/tdlib/types/public_chat_type.rb +1 -1
  806. data/lib/tdlib/types/public_forward/message.rb +8 -0
  807. data/lib/tdlib/types/public_forward/story.rb +8 -0
  808. data/lib/tdlib/types/public_forward.rb +11 -0
  809. data/lib/tdlib/types/public_forwards.rb +13 -0
  810. data/lib/tdlib/types/push_message_content/chat_add_members.rb +1 -1
  811. data/lib/tdlib/types/push_message_content/chat_delete_member.rb +1 -1
  812. data/lib/tdlib/types/push_message_content/chat_join_by_link.rb +1 -1
  813. data/lib/tdlib/types/push_message_content/chat_join_by_request.rb +5 -0
  814. data/lib/tdlib/types/push_message_content/chat_set_background.rb +8 -0
  815. data/lib/tdlib/types/push_message_content/chat_set_theme.rb +9 -0
  816. data/lib/tdlib/types/push_message_content/media_album.rb +1 -1
  817. data/lib/tdlib/types/push_message_content/paid_media.rb +11 -0
  818. data/lib/tdlib/types/push_message_content/premium_gift_code.rb +9 -0
  819. data/lib/tdlib/types/push_message_content/premium_giveaway.rb +14 -0
  820. data/lib/tdlib/types/push_message_content/recurring_payment.rb +8 -0
  821. data/lib/tdlib/types/push_message_content/story.rb +8 -0
  822. data/lib/tdlib/types/push_message_content/suggest_profile_photo.rb +5 -0
  823. data/lib/tdlib/types/push_message_content.rb +9 -0
  824. data/lib/tdlib/types/quick_reply_message.rb +25 -0
  825. data/lib/tdlib/types/quick_reply_messages.rb +8 -0
  826. data/lib/tdlib/types/quick_reply_shortcut.rb +14 -0
  827. data/lib/tdlib/types/reaction_notification_settings.rb +16 -0
  828. data/lib/tdlib/types/reaction_notification_source/all.rb +5 -0
  829. data/lib/tdlib/types/reaction_notification_source/contacts.rb +5 -0
  830. data/lib/tdlib/types/reaction_notification_source/none.rb +5 -0
  831. data/lib/tdlib/types/reaction_notification_source.rb +12 -0
  832. data/lib/tdlib/types/reaction_type/custom_emoji.rb +8 -0
  833. data/lib/tdlib/types/reaction_type/emoji.rb +8 -0
  834. data/lib/tdlib/types/reaction_type/paid.rb +5 -0
  835. data/lib/tdlib/types/reaction_type.rb +12 -0
  836. data/lib/tdlib/types/reaction_unavailability_reason/anonymous_administrator.rb +6 -0
  837. data/lib/tdlib/types/reaction_unavailability_reason/guest.rb +5 -0
  838. data/lib/tdlib/types/reaction_unavailability_reason.rb +11 -0
  839. data/lib/tdlib/types/read_date_privacy_settings.rb +11 -0
  840. data/lib/tdlib/types/recommended_chat_folder.rb +10 -0
  841. data/lib/tdlib/types/recommended_chat_folders.rb +8 -0
  842. data/lib/tdlib/types/remote_file.rb +6 -6
  843. data/lib/tdlib/types/reply_markup/force_reply.rb +3 -0
  844. data/lib/tdlib/types/reply_markup/remove_keyboard.rb +1 -1
  845. data/lib/tdlib/types/reply_markup/show_keyboard.rb +6 -0
  846. data/lib/tdlib/types/report_chat_sponsored_message_option.rb +10 -0
  847. data/lib/tdlib/types/report_chat_sponsored_message_result/ads_hidden.rb +5 -0
  848. data/lib/tdlib/types/report_chat_sponsored_message_result/failed.rb +5 -0
  849. data/lib/tdlib/types/report_chat_sponsored_message_result/ok.rb +5 -0
  850. data/lib/tdlib/types/report_chat_sponsored_message_result/option_required.rb +10 -0
  851. data/lib/tdlib/types/report_chat_sponsored_message_result/premium_required.rb +5 -0
  852. data/lib/tdlib/types/report_chat_sponsored_message_result.rb +14 -0
  853. data/lib/tdlib/types/{chat_report_reason → report_reason}/child_abuse.rb +1 -1
  854. data/lib/tdlib/types/{chat_report_reason → report_reason}/copyright.rb +1 -1
  855. data/lib/tdlib/types/{chat_report_reason → report_reason}/custom.rb +1 -1
  856. data/lib/tdlib/types/{chat_report_reason → report_reason}/fake.rb +1 -1
  857. data/lib/tdlib/types/report_reason/illegal_drugs.rb +5 -0
  858. data/lib/tdlib/types/report_reason/personal_details.rb +5 -0
  859. data/lib/tdlib/types/{chat_report_reason → report_reason}/pornography.rb +1 -1
  860. data/lib/tdlib/types/{chat_report_reason → report_reason}/spam.rb +1 -1
  861. data/lib/tdlib/types/{chat_report_reason → report_reason}/unrelated_location.rb +1 -1
  862. data/lib/tdlib/types/{chat_report_reason → report_reason}/violence.rb +1 -1
  863. data/lib/tdlib/types/{chat_report_reason.rb → report_reason.rb} +4 -2
  864. data/lib/tdlib/types/resend_code_reason/user_request.rb +5 -0
  865. data/lib/tdlib/types/resend_code_reason/verification_failed.rb +9 -0
  866. data/lib/tdlib/types/resend_code_reason.rb +11 -0
  867. data/lib/tdlib/types/reset_password_result/declined.rb +8 -0
  868. data/lib/tdlib/types/reset_password_result/ok.rb +5 -0
  869. data/lib/tdlib/types/reset_password_result/pending.rb +9 -0
  870. data/lib/tdlib/types/reset_password_result.rb +12 -0
  871. data/lib/tdlib/types/revenue_withdrawal_state/failed.rb +5 -0
  872. data/lib/tdlib/types/revenue_withdrawal_state/pending.rb +5 -0
  873. data/lib/tdlib/types/revenue_withdrawal_state/succeeded.rb +10 -0
  874. data/lib/tdlib/types/revenue_withdrawal_state.rb +12 -0
  875. data/lib/tdlib/types/rich_text/anchor_link.rb +2 -2
  876. data/lib/tdlib/types/rich_text/icon.rb +2 -2
  877. data/lib/tdlib/types/rich_text/reference.rb +1 -1
  878. data/lib/tdlib/types/rich_text.rb +1 -1
  879. data/lib/tdlib/types/rtmp_url.rb +10 -0
  880. data/lib/tdlib/types/saved_credentials.rb +1 -1
  881. data/lib/tdlib/types/saved_messages_tag.rb +13 -0
  882. data/lib/tdlib/types/saved_messages_tags.rb +8 -0
  883. data/lib/tdlib/types/saved_messages_topic.rb +19 -0
  884. data/lib/tdlib/types/saved_messages_topic_type/author_hidden.rb +5 -0
  885. data/lib/tdlib/types/saved_messages_topic_type/my_notes.rb +5 -0
  886. data/lib/tdlib/types/saved_messages_topic_type/saved_from_chat.rb +8 -0
  887. data/lib/tdlib/types/saved_messages_topic_type.rb +12 -0
  888. data/lib/tdlib/types/scope_autosave_settings.rb +12 -0
  889. data/lib/tdlib/types/scope_notification_settings.rb +13 -4
  890. data/lib/tdlib/types/search_messages_filter/unread_reaction.rb +7 -0
  891. data/lib/tdlib/types/search_messages_filter.rb +1 -2
  892. data/lib/tdlib/types/secret_chat.rb +4 -3
  893. data/lib/tdlib/types/sent_web_app_message.rb +8 -0
  894. data/lib/tdlib/types/session.rb +16 -8
  895. data/lib/tdlib/types/session_type/android.rb +5 -0
  896. data/lib/tdlib/types/session_type/apple.rb +5 -0
  897. data/lib/tdlib/types/session_type/brave.rb +5 -0
  898. data/lib/tdlib/types/session_type/chrome.rb +5 -0
  899. data/lib/tdlib/types/session_type/edge.rb +5 -0
  900. data/lib/tdlib/types/session_type/firefox.rb +5 -0
  901. data/lib/tdlib/types/session_type/ipad.rb +5 -0
  902. data/lib/tdlib/types/session_type/iphone.rb +5 -0
  903. data/lib/tdlib/types/session_type/linux.rb +5 -0
  904. data/lib/tdlib/types/session_type/mac.rb +5 -0
  905. data/lib/tdlib/types/session_type/opera.rb +5 -0
  906. data/lib/tdlib/types/session_type/safari.rb +5 -0
  907. data/lib/tdlib/types/session_type/ubuntu.rb +5 -0
  908. data/lib/tdlib/types/session_type/unknown.rb +5 -0
  909. data/lib/tdlib/types/session_type/vivaldi.rb +5 -0
  910. data/lib/tdlib/types/session_type/windows.rb +5 -0
  911. data/lib/tdlib/types/session_type/xbox.rb +5 -0
  912. data/lib/tdlib/types/session_type.rb +26 -0
  913. data/lib/tdlib/types/sessions.rb +3 -0
  914. data/lib/tdlib/types/shared_chat.rb +14 -0
  915. data/lib/tdlib/types/shared_user.rb +16 -0
  916. data/lib/tdlib/types/speech_recognition_result/error.rb +9 -0
  917. data/lib/tdlib/types/speech_recognition_result/pending.rb +8 -0
  918. data/lib/tdlib/types/speech_recognition_result/text.rb +8 -0
  919. data/lib/tdlib/types/speech_recognition_result.rb +12 -0
  920. data/lib/tdlib/types/sponsored_message.rb +31 -0
  921. data/lib/tdlib/types/sponsored_messages.rb +11 -0
  922. data/lib/tdlib/types/star_payment_option.rb +18 -0
  923. data/lib/tdlib/types/star_payment_options.rb +8 -0
  924. data/lib/tdlib/types/star_revenue_statistics.rb +12 -0
  925. data/lib/tdlib/types/star_revenue_status.rb +17 -0
  926. data/lib/tdlib/types/star_subscription.rb +25 -0
  927. data/lib/tdlib/types/star_subscription_pricing.rb +10 -0
  928. data/lib/tdlib/types/star_subscriptions.rb +16 -0
  929. data/lib/tdlib/types/star_transaction.rb +17 -0
  930. data/lib/tdlib/types/star_transaction_direction/incoming.rb +5 -0
  931. data/lib/tdlib/types/star_transaction_direction/outgoing.rb +5 -0
  932. data/lib/tdlib/types/star_transaction_direction.rb +11 -0
  933. data/lib/tdlib/types/star_transaction_partner/app_store.rb +5 -0
  934. data/lib/tdlib/types/star_transaction_partner/bot.rb +10 -0
  935. data/lib/tdlib/types/star_transaction_partner/business.rb +10 -0
  936. data/lib/tdlib/types/star_transaction_partner/channel.rb +10 -0
  937. data/lib/tdlib/types/star_transaction_partner/fragment.rb +9 -0
  938. data/lib/tdlib/types/star_transaction_partner/google_play.rb +5 -0
  939. data/lib/tdlib/types/star_transaction_partner/telegram.rb +5 -0
  940. data/lib/tdlib/types/star_transaction_partner/telegram_ads.rb +5 -0
  941. data/lib/tdlib/types/star_transaction_partner/unsupported.rb +5 -0
  942. data/lib/tdlib/types/star_transaction_partner/user.rb +11 -0
  943. data/lib/tdlib/types/star_transaction_partner.rb +19 -0
  944. data/lib/tdlib/types/star_transactions.rb +13 -0
  945. data/lib/tdlib/types/sticker.rb +7 -7
  946. data/lib/tdlib/types/sticker_format/tgs.rb +5 -0
  947. data/lib/tdlib/types/sticker_format/webm.rb +5 -0
  948. data/lib/tdlib/types/sticker_format/webp.rb +5 -0
  949. data/lib/tdlib/types/sticker_format.rb +12 -0
  950. data/lib/tdlib/types/sticker_full_type/custom_emoji.rb +12 -0
  951. data/lib/tdlib/types/sticker_full_type/mask.rb +8 -0
  952. data/lib/tdlib/types/sticker_full_type/regular.rb +9 -0
  953. data/lib/tdlib/types/sticker_full_type.rb +12 -0
  954. data/lib/tdlib/types/sticker_set.rb +13 -7
  955. data/lib/tdlib/types/sticker_set_info.rb +15 -9
  956. data/lib/tdlib/types/sticker_type/custom_emoji.rb +5 -0
  957. data/lib/tdlib/types/sticker_type/mask.rb +5 -0
  958. data/lib/tdlib/types/sticker_type/regular.rb +5 -0
  959. data/lib/tdlib/types/sticker_type.rb +12 -0
  960. data/lib/tdlib/types/storage_statistics.rb +1 -1
  961. data/lib/tdlib/types/storage_statistics_by_chat.rb +1 -1
  962. data/lib/tdlib/types/storage_statistics_by_file_type.rb +1 -1
  963. data/lib/tdlib/types/storage_statistics_fast.rb +1 -1
  964. data/lib/tdlib/types/store_payment_purpose/gifted_premium.rb +12 -0
  965. data/lib/tdlib/types/store_payment_purpose/gifted_stars.rb +14 -0
  966. data/lib/tdlib/types/store_payment_purpose/premium_gift_codes.rb +15 -0
  967. data/lib/tdlib/types/store_payment_purpose/premium_giveaway.rb +12 -0
  968. data/lib/tdlib/types/store_payment_purpose/premium_subscription.rb +11 -0
  969. data/lib/tdlib/types/store_payment_purpose/stars.rb +12 -0
  970. data/lib/tdlib/types/store_payment_purpose.rb +15 -0
  971. data/lib/tdlib/types/stories.rb +13 -0
  972. data/lib/tdlib/types/story.rb +62 -0
  973. data/lib/tdlib/types/story_area.rb +10 -0
  974. data/lib/tdlib/types/story_area_position.rb +19 -0
  975. data/lib/tdlib/types/story_area_type/link.rb +8 -0
  976. data/lib/tdlib/types/story_area_type/location.rb +10 -0
  977. data/lib/tdlib/types/story_area_type/message.rb +10 -0
  978. data/lib/tdlib/types/story_area_type/suggested_reaction.rb +15 -0
  979. data/lib/tdlib/types/story_area_type/venue.rb +8 -0
  980. data/lib/tdlib/types/story_area_type/weather.rb +12 -0
  981. data/lib/tdlib/types/story_area_type.rb +15 -0
  982. data/lib/tdlib/types/story_content/photo.rb +8 -0
  983. data/lib/tdlib/types/story_content/unsupported.rb +5 -0
  984. data/lib/tdlib/types/story_content/video.rb +11 -0
  985. data/lib/tdlib/types/story_content.rb +12 -0
  986. data/lib/tdlib/types/story_full_id.rb +10 -0
  987. data/lib/tdlib/types/story_info.rb +12 -0
  988. data/lib/tdlib/types/story_interaction.rb +15 -0
  989. data/lib/tdlib/types/story_interaction_info.rb +14 -0
  990. data/lib/tdlib/types/story_interaction_type/forward.rb +8 -0
  991. data/lib/tdlib/types/story_interaction_type/repost.rb +8 -0
  992. data/lib/tdlib/types/story_interaction_type/view.rb +9 -0
  993. data/lib/tdlib/types/story_interaction_type.rb +12 -0
  994. data/lib/tdlib/types/story_interactions.rb +18 -0
  995. data/lib/tdlib/types/story_list/archive.rb +5 -0
  996. data/lib/tdlib/types/story_list/main.rb +5 -0
  997. data/lib/tdlib/types/story_list.rb +11 -0
  998. data/lib/tdlib/types/story_origin/hidden_user.rb +8 -0
  999. data/lib/tdlib/types/story_origin/public_story.rb +10 -0
  1000. data/lib/tdlib/types/story_origin.rb +11 -0
  1001. data/lib/tdlib/types/story_privacy_settings/close_friends.rb +5 -0
  1002. data/lib/tdlib/types/story_privacy_settings/contacts.rb +9 -0
  1003. data/lib/tdlib/types/story_privacy_settings/everyone.rb +9 -0
  1004. data/lib/tdlib/types/story_privacy_settings/selected_users.rb +8 -0
  1005. data/lib/tdlib/types/story_privacy_settings.rb +13 -0
  1006. data/lib/tdlib/types/story_repost_info.rb +11 -0
  1007. data/lib/tdlib/types/story_statistics.rb +10 -0
  1008. data/lib/tdlib/types/story_video.rb +27 -0
  1009. data/lib/tdlib/types/suggested_action/check_password.rb +5 -0
  1010. data/lib/tdlib/types/suggested_action/check_phone_number.rb +2 -1
  1011. data/lib/tdlib/types/suggested_action/enable_archive_and_mute_new_chats.rb +1 -1
  1012. data/lib/tdlib/types/suggested_action/extend_premium.rb +8 -0
  1013. data/lib/tdlib/types/suggested_action/extend_star_subscriptions.rb +7 -0
  1014. data/lib/tdlib/types/suggested_action/gift_premium_for_christmas.rb +5 -0
  1015. data/lib/tdlib/types/suggested_action/restore_premium.rb +5 -0
  1016. data/lib/tdlib/types/suggested_action/set_birthdate.rb +5 -0
  1017. data/lib/tdlib/types/suggested_action/set_password.rb +9 -0
  1018. data/lib/tdlib/types/suggested_action/subscribe_to_annual_premium.rb +5 -0
  1019. data/lib/tdlib/types/suggested_action/upgrade_premium.rb +5 -0
  1020. data/lib/tdlib/types/suggested_action/view_checks_hint.rb +5 -0
  1021. data/lib/tdlib/types/suggested_action.rb +10 -1
  1022. data/lib/tdlib/types/supergroup.rb +33 -9
  1023. data/lib/tdlib/types/supergroup_full_info.rb +50 -10
  1024. data/lib/tdlib/types/t_me_url_type/chat_invite.rb +1 -1
  1025. data/lib/tdlib/types/t_me_url_type.rb +1 -1
  1026. data/lib/tdlib/types/target_chat/chosen.rb +14 -0
  1027. data/lib/tdlib/types/target_chat/current.rb +5 -0
  1028. data/lib/tdlib/types/target_chat/internal_link.rb +8 -0
  1029. data/lib/tdlib/types/target_chat.rb +12 -0
  1030. data/lib/tdlib/types/telegram_payment_purpose/gifted_stars.rb +14 -0
  1031. data/lib/tdlib/types/telegram_payment_purpose/join_chat.rb +8 -0
  1032. data/lib/tdlib/types/telegram_payment_purpose/premium_gift_codes.rb +17 -0
  1033. data/lib/tdlib/types/telegram_payment_purpose/premium_giveaway.rb +16 -0
  1034. data/lib/tdlib/types/telegram_payment_purpose/stars.rb +12 -0
  1035. data/lib/tdlib/types/telegram_payment_purpose.rb +14 -0
  1036. data/lib/tdlib/types/terms_of_service.rb +1 -1
  1037. data/lib/tdlib/types/text_entity_type/block_quote.rb +5 -0
  1038. data/lib/tdlib/types/text_entity_type/bot_command.rb +0 -1
  1039. data/lib/tdlib/types/text_entity_type/cashtag.rb +1 -2
  1040. data/lib/tdlib/types/text_entity_type/custom_emoji.rb +10 -0
  1041. data/lib/tdlib/types/text_entity_type/expandable_block_quote.rb +6 -0
  1042. data/lib/tdlib/types/text_entity_type/media_timestamp.rb +11 -0
  1043. data/lib/tdlib/types/text_entity_type/mention.rb +1 -1
  1044. data/lib/tdlib/types/text_entity_type/spoiler.rb +5 -0
  1045. data/lib/tdlib/types/text_entity_type.rb +5 -0
  1046. data/lib/tdlib/types/text_parse_mode.rb +1 -1
  1047. data/lib/tdlib/types/text_quote.rb +14 -0
  1048. data/lib/tdlib/types/theme_parameters.rb +34 -0
  1049. data/lib/tdlib/types/theme_settings.rb +17 -0
  1050. data/lib/tdlib/types/thumbnail_format/gif.rb +1 -1
  1051. data/lib/tdlib/types/thumbnail_format/tgs.rb +1 -1
  1052. data/lib/tdlib/types/thumbnail_format/webm.rb +6 -0
  1053. data/lib/tdlib/types/thumbnail_format/webp.rb +1 -1
  1054. data/lib/tdlib/types/thumbnail_format.rb +5 -4
  1055. data/lib/tdlib/types/time_zone.rb +12 -0
  1056. data/lib/tdlib/types/time_zones.rb +8 -0
  1057. data/lib/tdlib/types/top_chat_category/web_app_bots.rb +5 -0
  1058. data/lib/tdlib/types/top_chat_category.rb +1 -0
  1059. data/lib/tdlib/types/trending_sticker_sets.rb +12 -0
  1060. data/lib/tdlib/types/unconfirmed_session.rb +16 -0
  1061. data/lib/tdlib/types/unread_reaction.rb +12 -0
  1062. data/lib/tdlib/types/update/accent_colors.rb +15 -0
  1063. data/lib/tdlib/types/update/active_emoji_reactions.rb +8 -0
  1064. data/lib/tdlib/types/update/active_live_location_messages.rb +9 -0
  1065. data/lib/tdlib/types/update/active_notifications.rb +1 -1
  1066. data/lib/tdlib/types/update/animated_emoji_message_clicked.rb +14 -0
  1067. data/lib/tdlib/types/update/animation_search_parameters.rb +1 -1
  1068. data/lib/tdlib/types/update/application_verification_required.rb +15 -0
  1069. data/lib/tdlib/types/update/attachment_menu_bots.rb +9 -0
  1070. data/lib/tdlib/types/update/autosave_settings.rb +11 -0
  1071. data/lib/tdlib/types/update/available_message_effects.rb +10 -0
  1072. data/lib/tdlib/types/update/basic_group_full_info.rb +1 -1
  1073. data/lib/tdlib/types/update/business_connection.rb +8 -0
  1074. data/lib/tdlib/types/update/business_message_edited.rb +10 -0
  1075. data/lib/tdlib/types/update/business_messages_deleted.rb +12 -0
  1076. data/lib/tdlib/types/update/chat_accent_colors.rb +18 -0
  1077. data/lib/tdlib/types/update/chat_action.rb +14 -0
  1078. data/lib/tdlib/types/update/chat_active_stories.rb +8 -0
  1079. data/lib/tdlib/types/update/chat_added_to_list.rb +10 -0
  1080. data/lib/tdlib/types/update/chat_available_reactions.rb +10 -0
  1081. data/lib/tdlib/types/update/chat_background.rb +11 -0
  1082. data/lib/tdlib/types/update/chat_block_list.rb +10 -0
  1083. data/lib/tdlib/types/update/chat_boost.rb +10 -0
  1084. data/lib/tdlib/types/update/chat_business_bot_manage_bar.rb +11 -0
  1085. data/lib/tdlib/types/update/chat_draft_message.rb +2 -2
  1086. data/lib/tdlib/types/update/chat_emoji_status.rb +10 -0
  1087. data/lib/tdlib/types/update/chat_folders.rb +12 -0
  1088. data/lib/tdlib/types/update/chat_has_protected_content.rb +10 -0
  1089. data/lib/tdlib/types/update/chat_is_translatable.rb +10 -0
  1090. data/lib/tdlib/types/update/chat_last_message.rb +4 -3
  1091. data/lib/tdlib/types/update/chat_member.rb +7 -1
  1092. data/lib/tdlib/types/update/chat_message_auto_delete_time.rb +10 -0
  1093. data/lib/tdlib/types/update/chat_message_sender.rb +11 -0
  1094. data/lib/tdlib/types/update/chat_online_member_count.rb +2 -2
  1095. data/lib/tdlib/types/update/chat_pending_join_requests.rb +11 -0
  1096. data/lib/tdlib/types/update/chat_permissions.rb +1 -1
  1097. data/lib/tdlib/types/update/chat_position.rb +1 -1
  1098. data/lib/tdlib/types/update/chat_read_inbox.rb +1 -1
  1099. data/lib/tdlib/types/update/chat_removed_from_list.rb +10 -0
  1100. data/lib/tdlib/types/update/chat_revenue_amount.rb +11 -0
  1101. data/lib/tdlib/types/update/chat_theme.rb +11 -0
  1102. data/lib/tdlib/types/update/chat_themes.rb +8 -0
  1103. data/lib/tdlib/types/update/chat_unread_reaction_count.rb +10 -0
  1104. data/lib/tdlib/types/update/chat_video_chat.rb +10 -0
  1105. data/lib/tdlib/types/update/chat_view_as_topics.rb +10 -0
  1106. data/lib/tdlib/types/update/contact_close_birthdays.rb +8 -0
  1107. data/lib/tdlib/types/update/default_background.rb +10 -0
  1108. data/lib/tdlib/types/update/default_reaction_type.rb +8 -0
  1109. data/lib/tdlib/types/update/file_added_to_downloads.rb +11 -0
  1110. data/lib/tdlib/types/update/file_download.rb +16 -0
  1111. data/lib/tdlib/types/update/file_downloads.rb +12 -0
  1112. data/lib/tdlib/types/update/file_generation_start.rb +4 -4
  1113. data/lib/tdlib/types/update/file_removed_from_downloads.rb +11 -0
  1114. data/lib/tdlib/types/update/forum_topic_info.rb +10 -0
  1115. data/lib/tdlib/types/update/installed_sticker_sets.rb +2 -2
  1116. data/lib/tdlib/types/update/language_pack_strings.rb +2 -1
  1117. data/lib/tdlib/types/update/message_content_opened.rb +1 -2
  1118. data/lib/tdlib/types/update/message_fact_check.rb +12 -0
  1119. data/lib/tdlib/types/update/message_reaction.rb +18 -0
  1120. data/lib/tdlib/types/update/message_reactions.rb +14 -0
  1121. data/lib/tdlib/types/update/message_send_acknowledged.rb +2 -3
  1122. data/lib/tdlib/types/update/message_send_failed.rb +3 -5
  1123. data/lib/tdlib/types/update/message_send_succeeded.rb +1 -1
  1124. data/lib/tdlib/types/update/message_unread_reactions.rb +14 -0
  1125. data/lib/tdlib/types/update/new_business_callback_query.rb +18 -0
  1126. data/lib/tdlib/types/update/new_business_message.rb +10 -0
  1127. data/lib/tdlib/types/update/new_callback_query.rb +1 -1
  1128. data/lib/tdlib/types/update/new_chat_join_request.rb +15 -0
  1129. data/lib/tdlib/types/update/new_inline_callback_query.rb +1 -1
  1130. data/lib/tdlib/types/update/new_inline_query.rb +2 -2
  1131. data/lib/tdlib/types/update/notification_group.rb +4 -4
  1132. data/lib/tdlib/types/update/owned_star_count.rb +8 -0
  1133. data/lib/tdlib/types/update/poll_answer.rb +2 -2
  1134. data/lib/tdlib/types/update/profile_accent_colors.rb +12 -0
  1135. data/lib/tdlib/types/update/quick_reply_shortcut.rb +9 -0
  1136. data/lib/tdlib/types/update/quick_reply_shortcut_deleted.rb +8 -0
  1137. data/lib/tdlib/types/update/quick_reply_shortcut_messages.rb +11 -0
  1138. data/lib/tdlib/types/update/quick_reply_shortcuts.rb +8 -0
  1139. data/lib/tdlib/types/update/reaction_notification_settings.rb +8 -0
  1140. data/lib/tdlib/types/update/recent_stickers.rb +1 -1
  1141. data/lib/tdlib/types/update/saved_messages_tags.rb +11 -0
  1142. data/lib/tdlib/types/update/saved_messages_topic.rb +9 -0
  1143. data/lib/tdlib/types/update/saved_messages_topic_count.rb +8 -0
  1144. data/lib/tdlib/types/update/saved_notification_sounds.rb +9 -0
  1145. data/lib/tdlib/types/update/service_notification.rb +3 -3
  1146. data/lib/tdlib/types/update/speech_recognition_trial.rb +16 -0
  1147. data/lib/tdlib/types/update/speed_limit_notification.rb +11 -0
  1148. data/lib/tdlib/types/update/star_revenue_status.rb +12 -0
  1149. data/lib/tdlib/types/update/story.rb +8 -0
  1150. data/lib/tdlib/types/update/story_deleted.rb +10 -0
  1151. data/lib/tdlib/types/update/story_list_chat_count.rb +10 -0
  1152. data/lib/tdlib/types/update/story_send_failed.rb +13 -0
  1153. data/lib/tdlib/types/update/story_send_succeeded.rb +10 -0
  1154. data/lib/tdlib/types/update/story_stealth_mode.rb +11 -0
  1155. data/lib/tdlib/types/update/supergroup_full_info.rb +1 -1
  1156. data/lib/tdlib/types/update/terms_of_service.rb +1 -1
  1157. data/lib/tdlib/types/update/trending_sticker_sets.rb +4 -2
  1158. data/lib/tdlib/types/update/unconfirmed_session.rb +8 -0
  1159. data/lib/tdlib/types/update/user_full_info.rb +1 -1
  1160. data/lib/tdlib/types/update/web_app_message_sent.rb +8 -0
  1161. data/lib/tdlib/types/update.rb +78 -13
  1162. data/lib/tdlib/types/user.rb +38 -3
  1163. data/lib/tdlib/types/user_full_info.rb +44 -7
  1164. data/lib/tdlib/types/user_link.rb +11 -0
  1165. data/lib/tdlib/types/user_privacy_setting/allow_private_voice_and_video_note_messages.rb +6 -0
  1166. data/lib/tdlib/types/user_privacy_setting/show_bio.rb +5 -0
  1167. data/lib/tdlib/types/user_privacy_setting/show_birthdate.rb +5 -0
  1168. data/lib/tdlib/types/user_privacy_setting.rb +3 -0
  1169. data/lib/tdlib/types/user_privacy_setting_rule/allow_contacts.rb +1 -1
  1170. data/lib/tdlib/types/user_privacy_setting_rule/allow_premium_users.rb +5 -0
  1171. data/lib/tdlib/types/user_privacy_setting_rule/restrict_contacts.rb +1 -1
  1172. data/lib/tdlib/types/user_privacy_setting_rule.rb +2 -1
  1173. data/lib/tdlib/types/user_status/empty.rb +1 -1
  1174. data/lib/tdlib/types/user_status/last_month.rb +4 -0
  1175. data/lib/tdlib/types/user_status/last_week.rb +4 -0
  1176. data/lib/tdlib/types/user_status/recently.rb +4 -0
  1177. data/lib/tdlib/types/user_support_info.rb +12 -0
  1178. data/lib/tdlib/types/user_type/bot.rb +14 -1
  1179. data/lib/tdlib/types/user_type.rb +1 -1
  1180. data/lib/tdlib/types/usernames.rb +18 -0
  1181. data/lib/tdlib/types/users.rb +1 -1
  1182. data/lib/tdlib/types/validated_order_info.rb +2 -2
  1183. data/lib/tdlib/types/venue.rb +1 -1
  1184. data/lib/tdlib/types/video.rb +1 -1
  1185. data/lib/tdlib/types/{voice_chat.rb → video_chat.rb} +6 -6
  1186. data/lib/tdlib/types/video_note.rb +6 -0
  1187. data/lib/tdlib/types/voice_note.rb +5 -2
  1188. data/lib/tdlib/types/web_app.rb +17 -0
  1189. data/lib/tdlib/types/web_app_info.rb +10 -0
  1190. data/lib/tdlib/types/web_page_instant_view.rb +6 -3
  1191. data/lib/tdlib/types.rb +2024 -973
  1192. data/tdlib-schema.gemspec +1 -1
  1193. metadata +853 -59
  1194. data/lib/tdlib/types/authorization_state/wait_encryption_key.rb +0 -8
  1195. data/lib/tdlib/types/chat_event_action/message_ttl_setting_changed.rb +0 -10
  1196. data/lib/tdlib/types/chat_event_action/voice_chat_created.rb +0 -9
  1197. data/lib/tdlib/types/chat_event_action/voice_chat_discarded.rb +0 -9
  1198. data/lib/tdlib/types/chat_filter.rb +0 -36
  1199. data/lib/tdlib/types/chat_filter_info.rb +0 -14
  1200. data/lib/tdlib/types/chat_list/filter.rb +0 -8
  1201. data/lib/tdlib/types/chat_statistics_message_interaction_info.rb +0 -12
  1202. data/lib/tdlib/types/check_chat_username_result/public_chats_too_much.rb +0 -5
  1203. data/lib/tdlib/types/group_call_join_response/stream.rb +0 -5
  1204. data/lib/tdlib/types/group_call_join_response/webrtc.rb +0 -10
  1205. data/lib/tdlib/types/group_call_join_response.rb +0 -11
  1206. data/lib/tdlib/types/group_call_join_response_candidate.rb +0 -32
  1207. data/lib/tdlib/types/group_call_payload.rb +0 -12
  1208. data/lib/tdlib/types/group_call_payload_fingerprint.rb +0 -12
  1209. data/lib/tdlib/types/input_sticker/animated.rb +0 -12
  1210. data/lib/tdlib/types/input_sticker/static.rb +0 -14
  1211. data/lib/tdlib/types/message_content/chat_set_ttl.rb +0 -8
  1212. data/lib/tdlib/types/message_content/invite_voice_chat_participants.rb +0 -11
  1213. data/lib/tdlib/types/message_content/voice_chat_ended.rb +0 -8
  1214. data/lib/tdlib/types/message_content/voice_chat_started.rb +0 -9
  1215. data/lib/tdlib/types/message_content/website_connected.rb +0 -8
  1216. data/lib/tdlib/types/message_forward_origin/chat.rb +0 -10
  1217. data/lib/tdlib/types/message_forward_origin/message_import.rb +0 -8
  1218. data/lib/tdlib/types/message_forward_origin.rb +0 -14
  1219. data/lib/tdlib/types/payment_form_theme.rb +0 -18
  1220. data/lib/tdlib/types/recommended_chat_filter.rb +0 -10
  1221. data/lib/tdlib/types/recommended_chat_filters.rb +0 -8
  1222. data/lib/tdlib/types/search_messages_filter/call.rb +0 -5
  1223. data/lib/tdlib/types/search_messages_filter/missed_call.rb +0 -5
  1224. data/lib/tdlib/types/suggested_action/see_ticks_hint.rb +0 -5
  1225. data/lib/tdlib/types/tdlib_parameters.rb +0 -48
  1226. data/lib/tdlib/types/update/chat_filters.rb +0 -8
  1227. data/lib/tdlib/types/update/chat_is_blocked.rb +0 -10
  1228. data/lib/tdlib/types/update/chat_message_ttl_setting.rb +0 -10
  1229. data/lib/tdlib/types/update/chat_voice_chat.rb +0 -10
  1230. data/lib/tdlib/types/update/selected_background.rb +0 -10
  1231. data/lib/tdlib/types/update/user_chat_action.rb +0 -14
  1232. data/lib/tdlib/types/web_page.rb +0 -52
@@ -0,0 +1,12 @@
1
+ module TD::Types
2
+ # The chat is a private chat with an administrator of a chat to which the user sent join request.
3
+ #
4
+ # @attr title [TD::Types::String] Title of the chat to which the join request was sent.
5
+ # @attr is_channel [Boolean] True, if the join request was sent to a channel chat.
6
+ # @attr request_date [Integer] Point in time (Unix timestamp) when the join request was sent.
7
+ class ChatActionBar::JoinRequest < ChatActionBar
8
+ attribute :title, TD::Types::String
9
+ attribute :is_channel, TD::Types::Bool
10
+ attribute :request_date, TD::Types::Coercible::Integer
11
+ end
12
+ end
@@ -1,12 +1,15 @@
1
1
  module TD::Types
2
2
  # The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be
3
- # blocked using the method blockUser, or the other user can be added to the contact list using the method addContact.
3
+ # blocked using the method setMessageSenderBlockList, or the other user can be added to the contact list using the method
4
+ # addContact.
5
+ # If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be
6
+ # shown.
4
7
  #
5
8
  # @attr can_unarchive [Boolean] If true, the chat was automatically archived and can be moved back to the main chat
6
9
  # list using addChatToList simultaneously with setting chat notification settings to default using
7
10
  # setChatNotificationSettings.
8
- # @attr distance [Integer] If non-negative, the current user was found by the peer through searchChatsNearby and this
9
- # is the distance between the users.
11
+ # @attr distance [Integer] If non-negative, the current user was found by the other user through searchChatsNearby
12
+ # and this is the distance between the users.
10
13
  class ChatActionBar::ReportAddBlock < ChatActionBar
11
14
  attribute :can_unarchive, TD::Types::Bool
12
15
  attribute :distance, TD::Types::Coercible::Integer
@@ -1,5 +1,7 @@
1
1
  module TD::Types
2
- # The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam.
2
+ # The chat can be reported as spam using the method reportChat with the reason reportReasonSpam.
3
+ # If the chat is a private chat with a user with an emoji status, then a notice about emoji status usage must be
4
+ # shown.
3
5
  #
4
6
  # @attr can_unarchive [Boolean] If true, the chat was automatically archived and can be moved back to the main chat
5
7
  # list using addChatToList simultaneously with setting chat notification settings to default using
@@ -1,6 +1,6 @@
1
1
  module TD::Types
2
2
  # The chat is a location-based supergroup, which can be reported as having unrelated location using the method
3
- # reportChat with the reason chatReportReasonUnrelatedLocation.
3
+ # reportChat with the reason reportReasonUnrelatedLocation.
4
4
  class ChatActionBar::ReportUnrelatedLocation < ChatActionBar
5
5
  end
6
6
  end
@@ -1,5 +1,5 @@
1
1
  module TD::Types
2
- # Describes actions which should be possible to do through a chat action bar.
2
+ # Describes actions which must be possible to do through a chat action bar.
3
3
  class ChatActionBar < Base
4
4
  %w[
5
5
  report_spam
@@ -8,6 +8,7 @@ module TD::Types
8
8
  report_add_block
9
9
  add_contact
10
10
  share_phone_number
11
+ join_request
11
12
  ].each do |type|
12
13
  autoload TD::Types.camelize(type), "tdlib/types/chat_action_bar/#{type}"
13
14
  end
@@ -0,0 +1,21 @@
1
+ module TD::Types
2
+ # Describes active stories posted by a chat.
3
+ #
4
+ # @attr chat_id [Integer] Identifier of the chat that posted the stories.
5
+ # @attr list [TD::Types::StoryList, nil] Identifier of the story list in which the stories are shown; may be null if
6
+ # the stories aren't shown in a story list.
7
+ # @attr order [Integer] A parameter used to determine order of the stories in the story list; 0 if the stories
8
+ # doesn't need to be shown in the story list.
9
+ # Stories must be sorted by the pair (order, story_sender_chat_id) in descending order.
10
+ # @attr max_read_story_id [Integer] Identifier of the last read active story.
11
+ # @attr stories [Array<TD::Types::StoryInfo>] Basic information about the stories; use getStory to get full
12
+ # information about the stories.
13
+ # The stories are in chronological order (i.e., in order of increasing story identifiers).
14
+ class ChatActiveStories < Base
15
+ attribute :chat_id, TD::Types::Coercible::Integer
16
+ attribute :list, TD::Types::StoryList.optional.default(nil)
17
+ attribute :order, TD::Types::Coercible::Integer
18
+ attribute :max_read_story_id, TD::Types::Coercible::Integer
19
+ attribute :stories, TD::Types::Array.of(TD::Types::StoryInfo)
20
+ end
21
+ end
@@ -0,0 +1,48 @@
1
+ module TD::Types
2
+ # Describes rights of the administrator.
3
+ #
4
+ # @attr can_manage_chat [Boolean] True, if the administrator can access the chat event log, get boost list, see
5
+ # hidden supergroup and channel members, report supergroup spam messages and ignore slow mode.
6
+ # Implied by any other privilege; applicable to supergroups and channels only.
7
+ # @attr can_change_info [Boolean] True, if the administrator can change the chat title, photo, and other settings.
8
+ # @attr can_post_messages [Boolean] True, if the administrator can create channel posts or view channel statistics;
9
+ # applicable to channels only.
10
+ # @attr can_edit_messages [Boolean] True, if the administrator can edit messages of other users and pin messages;
11
+ # applicable to channels only.
12
+ # @attr can_delete_messages [Boolean] True, if the administrator can delete messages of other users.
13
+ # @attr can_invite_users [Boolean] True, if the administrator can invite new users to the chat.
14
+ # @attr can_restrict_members [Boolean] True, if the administrator can restrict, ban, or unban chat members or view
15
+ # supergroup statistics; always true for channels.
16
+ # @attr can_pin_messages [Boolean] True, if the administrator can pin messages; applicable to basic groups and
17
+ # supergroups only.
18
+ # @attr can_manage_topics [Boolean] True, if the administrator can create, rename, close, reopen, hide, and unhide
19
+ # forum topics; applicable to forum supergroups only.
20
+ # @attr can_promote_members [Boolean] True, if the administrator can add new administrators with a subset of their
21
+ # own privileges or demote administrators that were directly or indirectly promoted by them.
22
+ # @attr can_manage_video_chats [Boolean] True, if the administrator can manage video chats.
23
+ # @attr can_post_stories [Boolean] True, if the administrator can create new chat stories, or edit and delete posted
24
+ # stories; applicable to supergroups and channels only.
25
+ # @attr can_edit_stories [Boolean] True, if the administrator can edit stories posted by other users, post stories to
26
+ # the chat page, pin chat stories, and access story archive; applicable to supergroups and channels only.
27
+ # @attr can_delete_stories [Boolean] True, if the administrator can delete stories posted by other users; applicable
28
+ # to supergroups and channels only.
29
+ # @attr is_anonymous [Boolean] True, if the administrator isn't shown in the chat member list and sends messages
30
+ # anonymously; applicable to supergroups only.
31
+ class ChatAdministratorRights < Base
32
+ attribute :can_manage_chat, TD::Types::Bool
33
+ attribute :can_change_info, TD::Types::Bool
34
+ attribute :can_post_messages, TD::Types::Bool
35
+ attribute :can_edit_messages, TD::Types::Bool
36
+ attribute :can_delete_messages, TD::Types::Bool
37
+ attribute :can_invite_users, TD::Types::Bool
38
+ attribute :can_restrict_members, TD::Types::Bool
39
+ attribute :can_pin_messages, TD::Types::Bool
40
+ attribute :can_manage_topics, TD::Types::Bool
41
+ attribute :can_promote_members, TD::Types::Bool
42
+ attribute :can_manage_video_chats, TD::Types::Bool
43
+ attribute :can_post_stories, TD::Types::Bool
44
+ attribute :can_edit_stories, TD::Types::Bool
45
+ attribute :can_delete_stories, TD::Types::Bool
46
+ attribute :is_anonymous, TD::Types::Bool
47
+ end
48
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # All reactions are available in the chat, excluding the paid reaction and custom reactions in channel chats.
3
+ #
4
+ # @attr max_reaction_count [Integer] The maximum allowed number of reactions per message; 1-11.
5
+ class ChatAvailableReactions::All < ChatAvailableReactions
6
+ attribute :max_reaction_count, TD::Types::Coercible::Integer
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # Only specific reactions are available in the chat.
3
+ #
4
+ # @attr reactions [Array<TD::Types::ReactionType>] The list of reactions.
5
+ # @attr max_reaction_count [Integer] The maximum allowed number of reactions per message; 1-11.
6
+ class ChatAvailableReactions::Some < ChatAvailableReactions
7
+ attribute :reactions, TD::Types::Array.of(TD::Types::ReactionType)
8
+ attribute :max_reaction_count, TD::Types::Coercible::Integer
9
+ end
10
+ end
@@ -0,0 +1,11 @@
1
+ module TD::Types
2
+ # Describes reactions available in the chat.
3
+ class ChatAvailableReactions < Base
4
+ %w[
5
+ all
6
+ some
7
+ ].each do |type|
8
+ autoload TD::Types.camelize(type), "tdlib/types/chat_available_reactions/#{type}"
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ module TD::Types
2
+ # Describes a background set for a specific chat.
3
+ #
4
+ # @attr background [TD::Types::Background] The background.
5
+ # @attr dark_theme_dimming [Integer] Dimming of the background in dark themes, as a percentage; 0-100.
6
+ # Applied only to Wallpaper and Fill types of background.
7
+ class ChatBackground < Base
8
+ attribute :background, TD::Types::Background
9
+ attribute :dark_theme_dimming, TD::Types::Coercible::Integer
10
+ end
11
+ end
@@ -0,0 +1,16 @@
1
+ module TD::Types
2
+ # Describes a boost applied to a chat.
3
+ #
4
+ # @attr id [TD::Types::String] Unique identifier of the boost.
5
+ # @attr count [Integer] The number of identical boosts applied.
6
+ # @attr source [TD::Types::ChatBoostSource] Source of the boost.
7
+ # @attr start_date [Integer] Point in time (Unix timestamp) when the chat was boosted.
8
+ # @attr expiration_date [Integer] Point in time (Unix timestamp) when the boost will expire.
9
+ class ChatBoost < Base
10
+ attribute :id, TD::Types::String
11
+ attribute :count, TD::Types::Coercible::Integer
12
+ attribute :source, TD::Types::ChatBoostSource
13
+ attribute :start_date, TD::Types::Coercible::Integer
14
+ attribute :expiration_date, TD::Types::Coercible::Integer
15
+ end
16
+ end
@@ -0,0 +1,30 @@
1
+ module TD::Types
2
+ # Contains a list of features available on the first chat boost levels.
3
+ #
4
+ # @attr features [Array<TD::Types::ChatBoostLevelFeatures>] The list of features.
5
+ # @attr min_profile_background_custom_emoji_boost_level [Integer] The minimum boost level required to set custom
6
+ # emoji for profile background.
7
+ # @attr min_background_custom_emoji_boost_level [Integer] The minimum boost level required to set custom emoji for
8
+ # reply header and link preview background; for channel chats only.
9
+ # @attr min_emoji_status_boost_level [Integer] The minimum boost level required to set emoji status.
10
+ # @attr min_chat_theme_background_boost_level [Integer] The minimum boost level required to set a chat theme
11
+ # background as chat background.
12
+ # @attr min_custom_background_boost_level [Integer] The minimum boost level required to set custom chat background.
13
+ # @attr min_custom_emoji_sticker_set_boost_level [Integer] The minimum boost level required to set custom emoji
14
+ # sticker set for the chat; for supergroup chats only.
15
+ # @attr min_speech_recognition_boost_level [Integer] The minimum boost level allowing to recognize speech in video
16
+ # note and voice note messages for non-Premium users; for supergroup chats only.
17
+ # @attr min_sponsored_message_disable_boost_level [Integer] The minimum boost level allowing to disable sponsored
18
+ # messages in the chat; for channel chats only.
19
+ class ChatBoostFeatures < Base
20
+ attribute :features, TD::Types::Array.of(TD::Types::ChatBoostLevelFeatures)
21
+ attribute :min_profile_background_custom_emoji_boost_level, TD::Types::Coercible::Integer
22
+ attribute :min_background_custom_emoji_boost_level, TD::Types::Coercible::Integer
23
+ attribute :min_emoji_status_boost_level, TD::Types::Coercible::Integer
24
+ attribute :min_chat_theme_background_boost_level, TD::Types::Coercible::Integer
25
+ attribute :min_custom_background_boost_level, TD::Types::Coercible::Integer
26
+ attribute :min_custom_emoji_sticker_set_boost_level, TD::Types::Coercible::Integer
27
+ attribute :min_speech_recognition_boost_level, TD::Types::Coercible::Integer
28
+ attribute :min_sponsored_message_disable_boost_level, TD::Types::Coercible::Integer
29
+ end
30
+ end
@@ -0,0 +1,38 @@
1
+ module TD::Types
2
+ # Contains a list of features available on a specific chat boost level.
3
+ #
4
+ # @attr level [Integer] Target chat boost level.
5
+ # @attr story_per_day_count [Integer] Number of stories that the chat can publish daily.
6
+ # @attr custom_emoji_reaction_count [Integer] Number of custom emoji reactions that can be added to the list of
7
+ # available reactions.
8
+ # @attr title_color_count [Integer] Number of custom colors for chat title.
9
+ # @attr profile_accent_color_count [Integer] Number of custom colors for profile photo background.
10
+ # @attr can_set_profile_background_custom_emoji [Boolean] True, if custom emoji for profile background can be set.
11
+ # @attr accent_color_count [Integer] Number of custom colors for background of empty chat photo, replies to messages
12
+ # and link previews.
13
+ # @attr can_set_background_custom_emoji [Boolean] True, if custom emoji for reply header and link preview background
14
+ # can be set.
15
+ # @attr can_set_emoji_status [Boolean] True, if emoji status can be set.
16
+ # @attr chat_theme_background_count [Integer] Number of chat theme backgrounds that can be set as chat background.
17
+ # @attr can_set_custom_background [Boolean] True, if custom background can be set in the chat for all users.
18
+ # @attr can_set_custom_emoji_sticker_set [Boolean] True, if custom emoji sticker set can be set for the chat.
19
+ # @attr can_recognize_speech [Boolean] True, if speech recognition can be used for video note and voice note messages
20
+ # by all users.
21
+ # @attr can_disable_sponsored_messages [Boolean] True, if sponsored messages can be disabled in the chat.
22
+ class ChatBoostLevelFeatures < Base
23
+ attribute :level, TD::Types::Coercible::Integer
24
+ attribute :story_per_day_count, TD::Types::Coercible::Integer
25
+ attribute :custom_emoji_reaction_count, TD::Types::Coercible::Integer
26
+ attribute :title_color_count, TD::Types::Coercible::Integer
27
+ attribute :profile_accent_color_count, TD::Types::Coercible::Integer
28
+ attribute :can_set_profile_background_custom_emoji, TD::Types::Bool
29
+ attribute :accent_color_count, TD::Types::Coercible::Integer
30
+ attribute :can_set_background_custom_emoji, TD::Types::Bool
31
+ attribute :can_set_emoji_status, TD::Types::Bool
32
+ attribute :chat_theme_background_count, TD::Types::Coercible::Integer
33
+ attribute :can_set_custom_background, TD::Types::Bool
34
+ attribute :can_set_custom_emoji_sticker_set, TD::Types::Bool
35
+ attribute :can_recognize_speech, TD::Types::Bool
36
+ attribute :can_disable_sponsored_messages, TD::Types::Bool
37
+ end
38
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # Contains an HTTPS link to boost a chat.
3
+ #
4
+ # @attr link [TD::Types::String] The link.
5
+ # @attr is_public [Boolean] True, if the link will work for non-members of the chat.
6
+ class ChatBoostLink < Base
7
+ attribute :link, TD::Types::String
8
+ attribute :is_public, TD::Types::Bool
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # Contains information about a link to boost a chat.
3
+ #
4
+ # @attr is_public [Boolean] True, if the link will work for non-members of the chat.
5
+ # @attr chat_id [Integer] Identifier of the chat to which the link points; 0 if the chat isn't found.
6
+ class ChatBoostLinkInfo < Base
7
+ attribute :is_public, TD::Types::Bool
8
+ attribute :chat_id, TD::Types::Coercible::Integer
9
+ end
10
+ end
@@ -0,0 +1,17 @@
1
+ module TD::Types
2
+ # Describes a slot for chat boost.
3
+ #
4
+ # @attr slot_id [Integer] Unique identifier of the slot.
5
+ # @attr currently_boosted_chat_id [Integer] Identifier of the currently boosted chat; 0 if none.
6
+ # @attr start_date [Integer] Point in time (Unix timestamp) when the chat was boosted; 0 if none.
7
+ # @attr expiration_date [Integer] Point in time (Unix timestamp) when the boost will expire.
8
+ # @attr cooldown_until_date [Integer] Point in time (Unix timestamp) after which the boost can be used for another
9
+ # chat.
10
+ class ChatBoostSlot < Base
11
+ attribute :slot_id, TD::Types::Coercible::Integer
12
+ attribute :currently_boosted_chat_id, TD::Types::Coercible::Integer
13
+ attribute :start_date, TD::Types::Coercible::Integer
14
+ attribute :expiration_date, TD::Types::Coercible::Integer
15
+ attribute :cooldown_until_date, TD::Types::Coercible::Integer
16
+ end
17
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # Contains a list of chat boost slots.
3
+ #
4
+ # @attr slots [Array<TD::Types::ChatBoostSlot>] List of boost slots.
5
+ class ChatBoostSlots < Base
6
+ attribute :slots, TD::Types::Array.of(TD::Types::ChatBoostSlot)
7
+ end
8
+ end
@@ -0,0 +1,11 @@
1
+ module TD::Types
2
+ # The chat created a Telegram Premium gift code for a user.
3
+ #
4
+ # @attr user_id [Integer] Identifier of a user, for which the gift code was created.
5
+ # @attr gift_code [TD::Types::String] The created Telegram Premium gift code, which is known only if this is a gift
6
+ # code for the current user, or it has already been claimed.
7
+ class ChatBoostSource::GiftCode < ChatBoostSource
8
+ attribute :user_id, TD::Types::Coercible::Integer
9
+ attribute :gift_code, TD::Types::String
10
+ end
11
+ end
@@ -0,0 +1,17 @@
1
+ module TD::Types
2
+ # The chat created a Telegram Premium giveaway.
3
+ #
4
+ # @attr user_id [Integer] Identifier of a user that won in the giveaway; 0 if none.
5
+ # @attr gift_code [TD::Types::String] The created Telegram Premium gift code if it was used by the user or can be
6
+ # claimed by the current user; an empty string otherwise.
7
+ # @attr giveaway_message_id [Integer] Identifier of the corresponding giveaway message; can be an identifier of a
8
+ # deleted message.
9
+ # @attr is_unclaimed [Boolean] True, if the winner for the corresponding Telegram Premium subscription wasn't chosen,
10
+ # because there were not enough participants.
11
+ class ChatBoostSource::Giveaway < ChatBoostSource
12
+ attribute :user_id, TD::Types::Coercible::Integer
13
+ attribute :gift_code, TD::Types::String
14
+ attribute :giveaway_message_id, TD::Types::Coercible::Integer
15
+ attribute :is_unclaimed, TD::Types::Bool
16
+ end
17
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # A user with Telegram Premium subscription or gifted Telegram Premium boosted the chat.
3
+ #
4
+ # @attr user_id [Integer] Identifier of the user.
5
+ class ChatBoostSource::Premium < ChatBoostSource
6
+ attribute :user_id, TD::Types::Coercible::Integer
7
+ end
8
+ end
@@ -0,0 +1,12 @@
1
+ module TD::Types
2
+ # Describes source of a chat boost.
3
+ class ChatBoostSource < Base
4
+ %w[
5
+ gift_code
6
+ giveaway
7
+ premium
8
+ ].each do |type|
9
+ autoload TD::Types.camelize(type), "tdlib/types/chat_boost_source/#{type}"
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,31 @@
1
+ module TD::Types
2
+ # Describes current boost status of a chat.
3
+ #
4
+ # @attr boost_url [TD::Types::String] An HTTP URL, which can be used to boost the chat.
5
+ # @attr applied_slot_ids [Array<Integer>] Identifiers of boost slots of the current user applied to the chat.
6
+ # @attr level [Integer] Current boost level of the chat.
7
+ # @attr gift_code_boost_count [Integer] The number of boosts received by the chat from created Telegram Premium gift
8
+ # codes and giveaways; always 0 if the current user isn't an administrator in the chat.
9
+ # @attr boost_count [Integer] The number of boosts received by the chat.
10
+ # @attr current_level_boost_count [Integer] The number of boosts added to reach the current level.
11
+ # @attr next_level_boost_count [Integer] The number of boosts needed to reach the next level; 0 if the next level
12
+ # isn't available.
13
+ # @attr premium_member_count [Integer] Approximate number of Telegram Premium subscribers joined the chat; always 0
14
+ # if the current user isn't an administrator in the chat.
15
+ # @attr premium_member_percentage [Float] A percentage of Telegram Premium subscribers joined the chat; always 0 if
16
+ # the current user isn't an administrator in the chat.
17
+ # @attr prepaid_giveaways [Array<TD::Types::PrepaidPremiumGiveaway>] The list of prepaid giveaways available for the
18
+ # chat; only for chat administrators.
19
+ class ChatBoostStatus < Base
20
+ attribute :boost_url, TD::Types::String
21
+ attribute :applied_slot_ids, TD::Types::Array.of(TD::Types::Coercible::Integer)
22
+ attribute :level, TD::Types::Coercible::Integer
23
+ attribute :gift_code_boost_count, TD::Types::Coercible::Integer
24
+ attribute :boost_count, TD::Types::Coercible::Integer
25
+ attribute :current_level_boost_count, TD::Types::Coercible::Integer
26
+ attribute :next_level_boost_count, TD::Types::Coercible::Integer
27
+ attribute :premium_member_count, TD::Types::Coercible::Integer
28
+ attribute :premium_member_percentage, TD::Types::Coercible::Float
29
+ attribute :prepaid_giveaways, TD::Types::Array.of(TD::Types::PrepaidPremiumGiveaway)
30
+ end
31
+ end
@@ -3,12 +3,12 @@ module TD::Types
3
3
  #
4
4
  # @attr id [Integer] Chat event identifier.
5
5
  # @attr date [Integer] Point in time (Unix timestamp) when the event happened.
6
- # @attr user_id [Integer] Identifier of the user who performed the action that triggered the event.
7
- # @attr action [TD::Types::ChatEventAction] Action performed by the user.
6
+ # @attr member_id [TD::Types::MessageSender] Identifier of the user or chat who performed the action.
7
+ # @attr action [TD::Types::ChatEventAction] The action.
8
8
  class ChatEvent < Base
9
9
  attribute :id, TD::Types::Coercible::Integer
10
10
  attribute :date, TD::Types::Coercible::Integer
11
- attribute :user_id, TD::Types::Coercible::Integer
11
+ attribute :member_id, TD::Types::MessageSender
12
12
  attribute :action, TD::Types::ChatEventAction
13
13
  end
14
14
  end
@@ -0,0 +1,14 @@
1
+ module TD::Types
2
+ # The chat accent color or background custom emoji were changed.
3
+ #
4
+ # @attr old_accent_color_id [Integer] Previous identifier of chat accent color.
5
+ # @attr old_background_custom_emoji_id [Integer] Previous identifier of the custom emoji; 0 if none.
6
+ # @attr new_accent_color_id [Integer] New identifier of chat accent color.
7
+ # @attr new_background_custom_emoji_id [Integer] New identifier of the custom emoji; 0 if none.
8
+ class ChatEventAction::AccentColorChanged < ChatEventAction
9
+ attribute :old_accent_color_id, TD::Types::Coercible::Integer
10
+ attribute :old_background_custom_emoji_id, TD::Types::Coercible::Integer
11
+ attribute :new_accent_color_id, TD::Types::Coercible::Integer
12
+ attribute :new_background_custom_emoji_id, TD::Types::Coercible::Integer
13
+ end
14
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # The chat active usernames were changed.
3
+ #
4
+ # @attr old_usernames [Array<TD::Types::String>] Previous list of active usernames.
5
+ # @attr new_usernames [Array<TD::Types::String>] New list of active usernames.
6
+ class ChatEventAction::ActiveUsernamesChanged < ChatEventAction
7
+ attribute :old_usernames, TD::Types::Array.of(TD::Types::String)
8
+ attribute :new_usernames, TD::Types::Array.of(TD::Types::String)
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # The chat available reactions were changed.
3
+ #
4
+ # @attr old_available_reactions [TD::Types::ChatAvailableReactions] Previous chat available reactions.
5
+ # @attr new_available_reactions [TD::Types::ChatAvailableReactions] New chat available reactions.
6
+ class ChatEventAction::AvailableReactionsChanged < ChatEventAction
7
+ attribute :old_available_reactions, TD::Types::ChatAvailableReactions
8
+ attribute :new_available_reactions, TD::Types::ChatAvailableReactions
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # The chat background was changed.
3
+ #
4
+ # @attr old_background [TD::Types::ChatBackground, nil] Previous background; may be null if none.
5
+ # @attr new_background [TD::Types::ChatBackground, nil] New background; may be null if none.
6
+ class ChatEventAction::BackgroundChanged < ChatEventAction
7
+ attribute :old_background, TD::Types::ChatBackground.optional.default(nil)
8
+ attribute :new_background, TD::Types::ChatBackground.optional.default(nil)
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # The supergroup sticker set with allowed custom emoji was changed.
3
+ #
4
+ # @attr old_sticker_set_id [Integer] Previous identifier of the chat sticker set; 0 if none.
5
+ # @attr new_sticker_set_id [Integer] New identifier of the chat sticker set; 0 if none.
6
+ class ChatEventAction::CustomEmojiStickerSetChanged < ChatEventAction
7
+ attribute :old_sticker_set_id, TD::Types::Coercible::Integer
8
+ attribute :new_sticker_set_id, TD::Types::Coercible::Integer
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # The chat emoji status was changed.
3
+ #
4
+ # @attr old_emoji_status [TD::Types::EmojiStatus, nil] Previous emoji status; may be null if none.
5
+ # @attr new_emoji_status [TD::Types::EmojiStatus, nil] New emoji status; may be null if none.
6
+ class ChatEventAction::EmojiStatusChanged < ChatEventAction
7
+ attribute :old_emoji_status, TD::Types::EmojiStatus.optional.default(nil)
8
+ attribute :new_emoji_status, TD::Types::EmojiStatus.optional.default(nil)
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # A new forum topic was created.
3
+ #
4
+ # @attr topic_info [TD::Types::ForumTopicInfo] Information about the topic.
5
+ class ChatEventAction::ForumTopicCreated < ChatEventAction
6
+ attribute :topic_info, TD::Types::ForumTopicInfo
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # A forum topic was deleted.
3
+ #
4
+ # @attr topic_info [TD::Types::ForumTopicInfo] Information about the topic.
5
+ class ChatEventAction::ForumTopicDeleted < ChatEventAction
6
+ attribute :topic_info, TD::Types::ForumTopicInfo
7
+ end
8
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # A forum topic was edited.
3
+ #
4
+ # @attr old_topic_info [TD::Types::ForumTopicInfo] Old information about the topic.
5
+ # @attr new_topic_info [TD::Types::ForumTopicInfo] New information about the topic.
6
+ class ChatEventAction::ForumTopicEdited < ChatEventAction
7
+ attribute :old_topic_info, TD::Types::ForumTopicInfo
8
+ attribute :new_topic_info, TD::Types::ForumTopicInfo
9
+ end
10
+ end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # A pinned forum topic was changed.
3
+ #
4
+ # @attr old_topic_info [TD::Types::ForumTopicInfo, nil] Information about the old pinned topic; may be null.
5
+ # @attr new_topic_info [TD::Types::ForumTopicInfo, nil] Information about the new pinned topic; may be null.
6
+ class ChatEventAction::ForumTopicPinned < ChatEventAction
7
+ attribute :old_topic_info, TD::Types::ForumTopicInfo.optional.default(nil)
8
+ attribute :new_topic_info, TD::Types::ForumTopicInfo.optional.default(nil)
9
+ end
10
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # A forum topic was closed or reopened.
3
+ #
4
+ # @attr topic_info [TD::Types::ForumTopicInfo] New information about the topic.
5
+ class ChatEventAction::ForumTopicToggleIsClosed < ChatEventAction
6
+ attribute :topic_info, TD::Types::ForumTopicInfo
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # The General forum topic was hidden or unhidden.
3
+ #
4
+ # @attr topic_info [TD::Types::ForumTopicInfo] New information about the topic.
5
+ class ChatEventAction::ForumTopicToggleIsHidden < ChatEventAction
6
+ attribute :topic_info, TD::Types::ForumTopicInfo
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # The has_aggressive_anti_spam_enabled setting of a supergroup was toggled.
3
+ #
4
+ # @attr has_aggressive_anti_spam_enabled [Boolean] New value of has_aggressive_anti_spam_enabled.
5
+ class ChatEventAction::HasAggressiveAntiSpamEnabledToggled < ChatEventAction
6
+ attribute :has_aggressive_anti_spam_enabled, TD::Types::Bool
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # The has_protected_content setting of a channel was toggled.
3
+ #
4
+ # @attr has_protected_content [Boolean] New value of has_protected_content.
5
+ class ChatEventAction::HasProtectedContentToggled < ChatEventAction
6
+ attribute :has_protected_content, TD::Types::Bool
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module TD::Types
2
+ # The is_forum setting of a channel was toggled.
3
+ #
4
+ # @attr is_forum [Boolean] New value of is_forum.
5
+ class ChatEventAction::IsForumToggled < ChatEventAction
6
+ attribute :is_forum, TD::Types::Bool
7
+ end
8
+ end
@@ -1,8 +1,11 @@
1
1
  module TD::Types
2
- # A new member joined the chat by an invite link.
2
+ # A new member joined the chat via an invite link.
3
3
  #
4
4
  # @attr invite_link [TD::Types::ChatInviteLink] Invite link used to join the chat.
5
+ # @attr via_chat_folder_invite_link [Boolean] True, if the user has joined the chat using an invite link for a chat
6
+ # folder.
5
7
  class ChatEventAction::MemberJoinedByInviteLink < ChatEventAction
6
8
  attribute :invite_link, TD::Types::ChatInviteLink
9
+ attribute :via_chat_folder_invite_link, TD::Types::Bool
7
10
  end
8
11
  end
@@ -0,0 +1,10 @@
1
+ module TD::Types
2
+ # A new member was accepted to the chat by an administrator.
3
+ #
4
+ # @attr approver_user_id [Integer] User identifier of the chat administrator, approved user join request.
5
+ # @attr invite_link [TD::Types::ChatInviteLink, nil] Invite link used to join the chat; may be null.
6
+ class ChatEventAction::MemberJoinedByRequest < ChatEventAction
7
+ attribute :approver_user_id, TD::Types::Coercible::Integer
8
+ attribute :invite_link, TD::Types::ChatInviteLink.optional.default(nil)
9
+ end
10
+ end