tdlib-schema 1.7.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (980) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/main.yml +16 -0
  3. data/.gitignore +15 -0
  4. data/.gitmodules +3 -0
  5. data/.rspec +3 -0
  6. data/.ruby-gemset +1 -0
  7. data/.ruby-version +1 -0
  8. data/CHANGELOG.md +5 -0
  9. data/CODE_OF_CONDUCT.md +84 -0
  10. data/Gemfile +6 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +33 -0
  13. data/Rakefile +8 -0
  14. data/bin/console +15 -0
  15. data/bin/parser +466 -0
  16. data/bin/setup +8 -0
  17. data/lib/tdlib-schema.rb +3 -0
  18. data/lib/tdlib/client_methods.rb +5144 -0
  19. data/lib/tdlib/td.rb +2 -0
  20. data/lib/tdlib/types.rb +1293 -0
  21. data/lib/tdlib/types/account_ttl.rb +10 -0
  22. data/lib/tdlib/types/address.rb +18 -0
  23. data/lib/tdlib/types/animated_chat_photo.rb +12 -0
  24. data/lib/tdlib/types/animation.rb +26 -0
  25. data/lib/tdlib/types/animations.rb +8 -0
  26. data/lib/tdlib/types/audio.rb +25 -0
  27. data/lib/tdlib/types/authentication_code_info.rb +15 -0
  28. data/lib/tdlib/types/authentication_code_type.rb +13 -0
  29. data/lib/tdlib/types/authentication_code_type/call.rb +8 -0
  30. data/lib/tdlib/types/authentication_code_type/flash_call.rb +9 -0
  31. data/lib/tdlib/types/authentication_code_type/sms.rb +8 -0
  32. data/lib/tdlib/types/authentication_code_type/telegram_message.rb +9 -0
  33. data/lib/tdlib/types/authorization_state.rb +20 -0
  34. data/lib/tdlib/types/authorization_state/closed.rb +9 -0
  35. data/lib/tdlib/types/authorization_state/closing.rb +7 -0
  36. data/lib/tdlib/types/authorization_state/logging_out.rb +5 -0
  37. data/lib/tdlib/types/authorization_state/ready.rb +6 -0
  38. data/lib/tdlib/types/authorization_state/wait_code.rb +8 -0
  39. data/lib/tdlib/types/authorization_state/wait_encryption_key.rb +8 -0
  40. data/lib/tdlib/types/authorization_state/wait_other_device_confirmation.rb +9 -0
  41. data/lib/tdlib/types/authorization_state/wait_password.rb +13 -0
  42. data/lib/tdlib/types/authorization_state/wait_phone_number.rb +7 -0
  43. data/lib/tdlib/types/authorization_state/wait_registration.rb +9 -0
  44. data/lib/tdlib/types/authorization_state/wait_tdlib_parameters.rb +5 -0
  45. data/lib/tdlib/types/auto_download_settings.rb +24 -0
  46. data/lib/tdlib/types/auto_download_settings_presets.rb +15 -0
  47. data/lib/tdlib/types/background.rb +19 -0
  48. data/lib/tdlib/types/background_fill.rb +11 -0
  49. data/lib/tdlib/types/background_fill/gradient.rb +13 -0
  50. data/lib/tdlib/types/background_fill/solid.rb +8 -0
  51. data/lib/tdlib/types/background_type.rb +12 -0
  52. data/lib/tdlib/types/background_type/fill.rb +8 -0
  53. data/lib/tdlib/types/background_type/pattern.rb +13 -0
  54. data/lib/tdlib/types/background_type/wallpaper.rb +11 -0
  55. data/lib/tdlib/types/backgrounds.rb +8 -0
  56. data/lib/tdlib/types/bank_card_action_open_url.rb +10 -0
  57. data/lib/tdlib/types/bank_card_info.rb +10 -0
  58. data/lib/tdlib/types/base.rb +29 -0
  59. data/lib/tdlib/types/basic_group.rb +16 -0
  60. data/lib/tdlib/types/basic_group_full_info.rb +19 -0
  61. data/lib/tdlib/types/bot_command.rb +10 -0
  62. data/lib/tdlib/types/bot_info.rb +10 -0
  63. data/lib/tdlib/types/call.rb +16 -0
  64. data/lib/tdlib/types/call_discard_reason.rb +14 -0
  65. data/lib/tdlib/types/call_discard_reason/declined.rb +6 -0
  66. data/lib/tdlib/types/call_discard_reason/disconnected.rb +5 -0
  67. data/lib/tdlib/types/call_discard_reason/empty.rb +5 -0
  68. data/lib/tdlib/types/call_discard_reason/hung_up.rb +5 -0
  69. data/lib/tdlib/types/call_discard_reason/missed.rb +6 -0
  70. data/lib/tdlib/types/call_id.rb +8 -0
  71. data/lib/tdlib/types/call_problem.rb +18 -0
  72. data/lib/tdlib/types/call_problem/distorted_speech.rb +5 -0
  73. data/lib/tdlib/types/call_problem/distorted_video.rb +5 -0
  74. data/lib/tdlib/types/call_problem/dropped.rb +5 -0
  75. data/lib/tdlib/types/call_problem/echo.rb +5 -0
  76. data/lib/tdlib/types/call_problem/interruptions.rb +5 -0
  77. data/lib/tdlib/types/call_problem/noise.rb +5 -0
  78. data/lib/tdlib/types/call_problem/pixelated_video.rb +5 -0
  79. data/lib/tdlib/types/call_problem/silent_local.rb +5 -0
  80. data/lib/tdlib/types/call_problem/silent_remote.rb +5 -0
  81. data/lib/tdlib/types/call_protocol.rb +16 -0
  82. data/lib/tdlib/types/call_server.rb +16 -0
  83. data/lib/tdlib/types/call_server_type.rb +11 -0
  84. data/lib/tdlib/types/call_server_type/telegram_reflector.rb +8 -0
  85. data/lib/tdlib/types/call_server_type/webrtc.rb +14 -0
  86. data/lib/tdlib/types/call_state.rb +15 -0
  87. data/lib/tdlib/types/call_state/discarded.rb +12 -0
  88. data/lib/tdlib/types/call_state/error.rb +9 -0
  89. data/lib/tdlib/types/call_state/exchanging_keys.rb +5 -0
  90. data/lib/tdlib/types/call_state/hanging_up.rb +5 -0
  91. data/lib/tdlib/types/call_state/pending.rb +10 -0
  92. data/lib/tdlib/types/call_state/ready.rb +18 -0
  93. data/lib/tdlib/types/callback_query_answer.rb +12 -0
  94. data/lib/tdlib/types/callback_query_payload.rb +12 -0
  95. data/lib/tdlib/types/callback_query_payload/data.rb +8 -0
  96. data/lib/tdlib/types/callback_query_payload/data_with_password.rb +10 -0
  97. data/lib/tdlib/types/callback_query_payload/game.rb +8 -0
  98. data/lib/tdlib/types/can_transfer_ownership_result.rb +13 -0
  99. data/lib/tdlib/types/can_transfer_ownership_result/ok.rb +5 -0
  100. data/lib/tdlib/types/can_transfer_ownership_result/password_needed.rb +5 -0
  101. data/lib/tdlib/types/can_transfer_ownership_result/password_too_fresh.rb +8 -0
  102. data/lib/tdlib/types/can_transfer_ownership_result/session_too_fresh.rb +8 -0
  103. data/lib/tdlib/types/chat.rb +69 -0
  104. data/lib/tdlib/types/chat_action.rb +22 -0
  105. data/lib/tdlib/types/chat_action/cancel.rb +5 -0
  106. data/lib/tdlib/types/chat_action/choosing_contact.rb +5 -0
  107. data/lib/tdlib/types/chat_action/choosing_location.rb +5 -0
  108. data/lib/tdlib/types/chat_action/recording_video.rb +5 -0
  109. data/lib/tdlib/types/chat_action/recording_video_note.rb +5 -0
  110. data/lib/tdlib/types/chat_action/recording_voice_note.rb +5 -0
  111. data/lib/tdlib/types/chat_action/start_playing_game.rb +5 -0
  112. data/lib/tdlib/types/chat_action/typing.rb +5 -0
  113. data/lib/tdlib/types/chat_action/uploading_document.rb +8 -0
  114. data/lib/tdlib/types/chat_action/uploading_photo.rb +8 -0
  115. data/lib/tdlib/types/chat_action/uploading_video.rb +8 -0
  116. data/lib/tdlib/types/chat_action/uploading_video_note.rb +8 -0
  117. data/lib/tdlib/types/chat_action/uploading_voice_note.rb +8 -0
  118. data/lib/tdlib/types/chat_action_bar.rb +15 -0
  119. data/lib/tdlib/types/chat_action_bar/add_contact.rb +6 -0
  120. data/lib/tdlib/types/chat_action_bar/invite_members.rb +5 -0
  121. data/lib/tdlib/types/chat_action_bar/report_add_block.rb +14 -0
  122. data/lib/tdlib/types/chat_action_bar/report_spam.rb +10 -0
  123. data/lib/tdlib/types/chat_action_bar/report_unrelated_location.rb +6 -0
  124. data/lib/tdlib/types/chat_action_bar/share_phone_number.rb +6 -0
  125. data/lib/tdlib/types/chat_administrator.rb +12 -0
  126. data/lib/tdlib/types/chat_administrators.rb +8 -0
  127. data/lib/tdlib/types/chat_event.rb +14 -0
  128. data/lib/tdlib/types/chat_event_action.rb +41 -0
  129. data/lib/tdlib/types/chat_event_action/description_changed.rb +10 -0
  130. data/lib/tdlib/types/chat_event_action/invite_link_deleted.rb +8 -0
  131. data/lib/tdlib/types/chat_event_action/invite_link_edited.rb +10 -0
  132. data/lib/tdlib/types/chat_event_action/invite_link_revoked.rb +8 -0
  133. data/lib/tdlib/types/chat_event_action/invites_toggled.rb +8 -0
  134. data/lib/tdlib/types/chat_event_action/is_all_history_available_toggled.rb +8 -0
  135. data/lib/tdlib/types/chat_event_action/linked_chat_changed.rb +10 -0
  136. data/lib/tdlib/types/chat_event_action/location_changed.rb +10 -0
  137. data/lib/tdlib/types/chat_event_action/member_invited.rb +10 -0
  138. data/lib/tdlib/types/chat_event_action/member_joined.rb +5 -0
  139. data/lib/tdlib/types/chat_event_action/member_joined_by_invite_link.rb +8 -0
  140. data/lib/tdlib/types/chat_event_action/member_left.rb +5 -0
  141. data/lib/tdlib/types/chat_event_action/member_promoted.rb +12 -0
  142. data/lib/tdlib/types/chat_event_action/member_restricted.rb +12 -0
  143. data/lib/tdlib/types/chat_event_action/message_deleted.rb +8 -0
  144. data/lib/tdlib/types/chat_event_action/message_edited.rb +10 -0
  145. data/lib/tdlib/types/chat_event_action/message_pinned.rb +8 -0
  146. data/lib/tdlib/types/chat_event_action/message_ttl_setting_changed.rb +10 -0
  147. data/lib/tdlib/types/chat_event_action/message_unpinned.rb +8 -0
  148. data/lib/tdlib/types/chat_event_action/permissions_changed.rb +10 -0
  149. data/lib/tdlib/types/chat_event_action/photo_changed.rb +10 -0
  150. data/lib/tdlib/types/chat_event_action/poll_stopped.rb +8 -0
  151. data/lib/tdlib/types/chat_event_action/sign_messages_toggled.rb +8 -0
  152. data/lib/tdlib/types/chat_event_action/slow_mode_delay_changed.rb +10 -0
  153. data/lib/tdlib/types/chat_event_action/sticker_set_changed.rb +10 -0
  154. data/lib/tdlib/types/chat_event_action/title_changed.rb +10 -0
  155. data/lib/tdlib/types/chat_event_action/username_changed.rb +10 -0
  156. data/lib/tdlib/types/chat_event_action/voice_chat_created.rb +9 -0
  157. data/lib/tdlib/types/chat_event_action/voice_chat_discarded.rb +9 -0
  158. data/lib/tdlib/types/chat_event_action/voice_chat_mute_new_participants_toggled.rb +8 -0
  159. data/lib/tdlib/types/chat_event_action/voice_chat_participant_is_muted_toggled.rb +10 -0
  160. data/lib/tdlib/types/chat_event_action/voice_chat_participant_volume_level_changed.rb +10 -0
  161. data/lib/tdlib/types/chat_event_log_filters.rb +31 -0
  162. data/lib/tdlib/types/chat_events.rb +8 -0
  163. data/lib/tdlib/types/chat_filter.rb +36 -0
  164. data/lib/tdlib/types/chat_filter_info.rb +14 -0
  165. data/lib/tdlib/types/chat_invite_link.rb +27 -0
  166. data/lib/tdlib/types/chat_invite_link_count.rb +12 -0
  167. data/lib/tdlib/types/chat_invite_link_counts.rb +8 -0
  168. data/lib/tdlib/types/chat_invite_link_info.rb +24 -0
  169. data/lib/tdlib/types/chat_invite_link_member.rb +10 -0
  170. data/lib/tdlib/types/chat_invite_link_members.rb +10 -0
  171. data/lib/tdlib/types/chat_invite_links.rb +10 -0
  172. data/lib/tdlib/types/chat_list.rb +12 -0
  173. data/lib/tdlib/types/chat_list/archive.rb +6 -0
  174. data/lib/tdlib/types/chat_list/filter.rb +8 -0
  175. data/lib/tdlib/types/chat_list/main.rb +5 -0
  176. data/lib/tdlib/types/chat_lists.rb +8 -0
  177. data/lib/tdlib/types/chat_location.rb +10 -0
  178. data/lib/tdlib/types/chat_member.rb +21 -0
  179. data/lib/tdlib/types/chat_member_status.rb +15 -0
  180. data/lib/tdlib/types/chat_member_status/administrator.rb +42 -0
  181. data/lib/tdlib/types/chat_member_status/banned.rb +13 -0
  182. data/lib/tdlib/types/chat_member_status/creator.rb +14 -0
  183. data/lib/tdlib/types/chat_member_status/left.rb +5 -0
  184. data/lib/tdlib/types/chat_member_status/member.rb +5 -0
  185. data/lib/tdlib/types/chat_member_status/restricted.rb +16 -0
  186. data/lib/tdlib/types/chat_members.rb +10 -0
  187. data/lib/tdlib/types/chat_members_filter.rb +16 -0
  188. data/lib/tdlib/types/chat_members_filter/administrators.rb +5 -0
  189. data/lib/tdlib/types/chat_members_filter/banned.rb +5 -0
  190. data/lib/tdlib/types/chat_members_filter/bots.rb +5 -0
  191. data/lib/tdlib/types/chat_members_filter/contacts.rb +5 -0
  192. data/lib/tdlib/types/chat_members_filter/members.rb +5 -0
  193. data/lib/tdlib/types/chat_members_filter/mention.rb +8 -0
  194. data/lib/tdlib/types/chat_members_filter/restricted.rb +5 -0
  195. data/lib/tdlib/types/chat_nearby.rb +10 -0
  196. data/lib/tdlib/types/chat_notification_settings.rb +34 -0
  197. data/lib/tdlib/types/chat_permissions.rb +28 -0
  198. data/lib/tdlib/types/chat_photo.rb +16 -0
  199. data/lib/tdlib/types/chat_photo_info.rb +16 -0
  200. data/lib/tdlib/types/chat_photos.rb +10 -0
  201. data/lib/tdlib/types/chat_position.rb +15 -0
  202. data/lib/tdlib/types/chat_report_reason.rb +17 -0
  203. data/lib/tdlib/types/chat_report_reason/child_abuse.rb +5 -0
  204. data/lib/tdlib/types/chat_report_reason/copyright.rb +5 -0
  205. data/lib/tdlib/types/chat_report_reason/custom.rb +5 -0
  206. data/lib/tdlib/types/chat_report_reason/fake.rb +5 -0
  207. data/lib/tdlib/types/chat_report_reason/pornography.rb +5 -0
  208. data/lib/tdlib/types/chat_report_reason/spam.rb +5 -0
  209. data/lib/tdlib/types/chat_report_reason/unrelated_location.rb +5 -0
  210. data/lib/tdlib/types/chat_report_reason/violence.rb +5 -0
  211. data/lib/tdlib/types/chat_source.rb +11 -0
  212. data/lib/tdlib/types/chat_source/mtproto_proxy.rb +5 -0
  213. data/lib/tdlib/types/chat_source/public_service_announcement.rb +10 -0
  214. data/lib/tdlib/types/chat_statistics.rb +11 -0
  215. data/lib/tdlib/types/chat_statistics/channel.rb +42 -0
  216. data/lib/tdlib/types/chat_statistics/supergroup.rb +42 -0
  217. data/lib/tdlib/types/chat_statistics_administrator_actions_info.rb +14 -0
  218. data/lib/tdlib/types/chat_statistics_inviter_info.rb +10 -0
  219. data/lib/tdlib/types/chat_statistics_message_interaction_info.rb +12 -0
  220. data/lib/tdlib/types/chat_statistics_message_sender_info.rb +12 -0
  221. data/lib/tdlib/types/chat_type.rb +13 -0
  222. data/lib/tdlib/types/chat_type/basic_group.rb +8 -0
  223. data/lib/tdlib/types/chat_type/private.rb +8 -0
  224. data/lib/tdlib/types/chat_type/secret.rb +10 -0
  225. data/lib/tdlib/types/chat_type/supergroup.rb +11 -0
  226. data/lib/tdlib/types/chats.rb +10 -0
  227. data/lib/tdlib/types/chats_nearby.rb +10 -0
  228. data/lib/tdlib/types/check_chat_username_result.rb +14 -0
  229. data/lib/tdlib/types/check_chat_username_result/ok.rb +5 -0
  230. data/lib/tdlib/types/check_chat_username_result/public_chats_too_much.rb +5 -0
  231. data/lib/tdlib/types/check_chat_username_result/public_groups_unavailable.rb +5 -0
  232. data/lib/tdlib/types/check_chat_username_result/username_invalid.rb +5 -0
  233. data/lib/tdlib/types/check_chat_username_result/username_occupied.rb +5 -0
  234. data/lib/tdlib/types/closed_vector_path.rb +9 -0
  235. data/lib/tdlib/types/connected_website.rb +25 -0
  236. data/lib/tdlib/types/connected_websites.rb +8 -0
  237. data/lib/tdlib/types/connection_state.rb +14 -0
  238. data/lib/tdlib/types/connection_state/connecting.rb +5 -0
  239. data/lib/tdlib/types/connection_state/connecting_to_proxy.rb +5 -0
  240. data/lib/tdlib/types/connection_state/ready.rb +5 -0
  241. data/lib/tdlib/types/connection_state/updating.rb +5 -0
  242. data/lib/tdlib/types/connection_state/waiting_for_network.rb +6 -0
  243. data/lib/tdlib/types/contact.rb +16 -0
  244. data/lib/tdlib/types/count.rb +8 -0
  245. data/lib/tdlib/types/countries.rb +8 -0
  246. data/lib/tdlib/types/country_info.rb +16 -0
  247. data/lib/tdlib/types/custom_request_result.rb +8 -0
  248. data/lib/tdlib/types/database_statistics.rb +8 -0
  249. data/lib/tdlib/types/date.rb +12 -0
  250. data/lib/tdlib/types/date_range.rb +10 -0
  251. data/lib/tdlib/types/dated_file.rb +10 -0
  252. data/lib/tdlib/types/deep_link_info.rb +10 -0
  253. data/lib/tdlib/types/device_token.rb +22 -0
  254. data/lib/tdlib/types/device_token/apple_push.rb +10 -0
  255. data/lib/tdlib/types/device_token/apple_push_vo_ip.rb +12 -0
  256. data/lib/tdlib/types/device_token/black_berry_push.rb +8 -0
  257. data/lib/tdlib/types/device_token/firebase_cloud_messaging.rb +10 -0
  258. data/lib/tdlib/types/device_token/microsoft_push.rb +8 -0
  259. data/lib/tdlib/types/device_token/microsoft_push_vo_ip.rb +8 -0
  260. data/lib/tdlib/types/device_token/simple_push.rb +9 -0
  261. data/lib/tdlib/types/device_token/tizen_push.rb +8 -0
  262. data/lib/tdlib/types/device_token/ubuntu_push.rb +8 -0
  263. data/lib/tdlib/types/device_token/web_push.rb +13 -0
  264. data/lib/tdlib/types/device_token/windows_push.rb +9 -0
  265. data/lib/tdlib/types/dice_stickers.rb +11 -0
  266. data/lib/tdlib/types/dice_stickers/regular.rb +8 -0
  267. data/lib/tdlib/types/dice_stickers/slot_machine.rb +18 -0
  268. data/lib/tdlib/types/document.rb +17 -0
  269. data/lib/tdlib/types/draft_message.rb +13 -0
  270. data/lib/tdlib/types/email_address_authentication_code_info.rb +10 -0
  271. data/lib/tdlib/types/emojis.rb +8 -0
  272. data/lib/tdlib/types/encrypted_credentials.rb +12 -0
  273. data/lib/tdlib/types/encrypted_passport_element.rb +25 -0
  274. data/lib/tdlib/types/error.rb +12 -0
  275. data/lib/tdlib/types/file.rb +18 -0
  276. data/lib/tdlib/types/file_part.rb +8 -0
  277. data/lib/tdlib/types/file_type.rb +25 -0
  278. data/lib/tdlib/types/file_type/animation.rb +5 -0
  279. data/lib/tdlib/types/file_type/audio.rb +5 -0
  280. data/lib/tdlib/types/file_type/document.rb +5 -0
  281. data/lib/tdlib/types/file_type/none.rb +5 -0
  282. data/lib/tdlib/types/file_type/photo.rb +5 -0
  283. data/lib/tdlib/types/file_type/profile_photo.rb +5 -0
  284. data/lib/tdlib/types/file_type/secret.rb +5 -0
  285. data/lib/tdlib/types/file_type/secret_thumbnail.rb +5 -0
  286. data/lib/tdlib/types/file_type/secure.rb +5 -0
  287. data/lib/tdlib/types/file_type/sticker.rb +5 -0
  288. data/lib/tdlib/types/file_type/thumbnail.rb +5 -0
  289. data/lib/tdlib/types/file_type/unknown.rb +5 -0
  290. data/lib/tdlib/types/file_type/video.rb +5 -0
  291. data/lib/tdlib/types/file_type/video_note.rb +5 -0
  292. data/lib/tdlib/types/file_type/voice_note.rb +5 -0
  293. data/lib/tdlib/types/file_type/wallpaper.rb +5 -0
  294. data/lib/tdlib/types/formatted_text.rb +14 -0
  295. data/lib/tdlib/types/found_messages.rb +13 -0
  296. data/lib/tdlib/types/game.rb +21 -0
  297. data/lib/tdlib/types/game_high_score.rb +12 -0
  298. data/lib/tdlib/types/game_high_scores.rb +8 -0
  299. data/lib/tdlib/types/group_call.rb +42 -0
  300. data/lib/tdlib/types/group_call_id.rb +8 -0
  301. data/lib/tdlib/types/group_call_join_response.rb +11 -0
  302. data/lib/tdlib/types/group_call_join_response/stream.rb +5 -0
  303. data/lib/tdlib/types/group_call_join_response/webrtc.rb +10 -0
  304. data/lib/tdlib/types/group_call_join_response_candidate.rb +32 -0
  305. data/lib/tdlib/types/group_call_participant.rb +41 -0
  306. data/lib/tdlib/types/group_call_payload.rb +12 -0
  307. data/lib/tdlib/types/group_call_payload_fingerprint.rb +12 -0
  308. data/lib/tdlib/types/group_call_recent_speaker.rb +10 -0
  309. data/lib/tdlib/types/hashtags.rb +8 -0
  310. data/lib/tdlib/types/http_url.rb +8 -0
  311. data/lib/tdlib/types/identity_document.rb +19 -0
  312. data/lib/tdlib/types/imported_contacts.rb +12 -0
  313. data/lib/tdlib/types/inline_keyboard_button.rb +10 -0
  314. data/lib/tdlib/types/inline_keyboard_button_type.rb +16 -0
  315. data/lib/tdlib/types/inline_keyboard_button_type/buy.rb +7 -0
  316. data/lib/tdlib/types/inline_keyboard_button_type/callback.rb +8 -0
  317. data/lib/tdlib/types/inline_keyboard_button_type/callback_game.rb +7 -0
  318. data/lib/tdlib/types/inline_keyboard_button_type/callback_with_password.rb +8 -0
  319. data/lib/tdlib/types/inline_keyboard_button_type/login_url.rb +12 -0
  320. data/lib/tdlib/types/inline_keyboard_button_type/switch_inline.rb +10 -0
  321. data/lib/tdlib/types/inline_keyboard_button_type/url.rb +8 -0
  322. data/lib/tdlib/types/inline_query_result.rb +21 -0
  323. data/lib/tdlib/types/inline_query_result/animation.rb +12 -0
  324. data/lib/tdlib/types/inline_query_result/article.rb +18 -0
  325. data/lib/tdlib/types/inline_query_result/audio.rb +10 -0
  326. data/lib/tdlib/types/inline_query_result/contact.rb +12 -0
  327. data/lib/tdlib/types/inline_query_result/document.rb +14 -0
  328. data/lib/tdlib/types/inline_query_result/game.rb +10 -0
  329. data/lib/tdlib/types/inline_query_result/location.rb +14 -0
  330. data/lib/tdlib/types/inline_query_result/photo.rb +14 -0
  331. data/lib/tdlib/types/inline_query_result/sticker.rb +10 -0
  332. data/lib/tdlib/types/inline_query_result/venue.rb +12 -0
  333. data/lib/tdlib/types/inline_query_result/video.rb +14 -0
  334. data/lib/tdlib/types/inline_query_result/voice_note.rb +12 -0
  335. data/lib/tdlib/types/inline_query_results.rb +19 -0
  336. data/lib/tdlib/types/input_background.rb +11 -0
  337. data/lib/tdlib/types/input_background/local.rb +10 -0
  338. data/lib/tdlib/types/input_background/remote.rb +8 -0
  339. data/lib/tdlib/types/input_chat_photo.rb +12 -0
  340. data/lib/tdlib/types/input_chat_photo/animation.rb +12 -0
  341. data/lib/tdlib/types/input_chat_photo/previous.rb +8 -0
  342. data/lib/tdlib/types/input_chat_photo/static.rb +9 -0
  343. data/lib/tdlib/types/input_credentials.rb +13 -0
  344. data/lib/tdlib/types/input_credentials/apple_pay.rb +8 -0
  345. data/lib/tdlib/types/input_credentials/google_pay.rb +8 -0
  346. data/lib/tdlib/types/input_credentials/new.rb +10 -0
  347. data/lib/tdlib/types/input_credentials/saved.rb +9 -0
  348. data/lib/tdlib/types/input_file.rb +13 -0
  349. data/lib/tdlib/types/input_file/generated.rb +15 -0
  350. data/lib/tdlib/types/input_file/id.rb +8 -0
  351. data/lib/tdlib/types/input_file/local.rb +8 -0
  352. data/lib/tdlib/types/input_file/remote.rb +12 -0
  353. data/lib/tdlib/types/input_identity_document.rb +19 -0
  354. data/lib/tdlib/types/input_inline_query_result.rb +21 -0
  355. data/lib/tdlib/types/input_inline_query_result/animation.rb +34 -0
  356. data/lib/tdlib/types/input_inline_query_result/article.rb +29 -0
  357. data/lib/tdlib/types/input_inline_query_result/audio.rb +23 -0
  358. data/lib/tdlib/types/input_inline_query_result/contact.rb +23 -0
  359. data/lib/tdlib/types/input_inline_query_result/document.rb +30 -0
  360. data/lib/tdlib/types/input_inline_query_result/game.rb +13 -0
  361. data/lib/tdlib/types/input_inline_query_result/location.rb +28 -0
  362. data/lib/tdlib/types/input_inline_query_result/photo.rb +27 -0
  363. data/lib/tdlib/types/input_inline_query_result/sticker.rb +23 -0
  364. data/lib/tdlib/types/input_inline_query_result/venue.rb +23 -0
  365. data/lib/tdlib/types/input_inline_query_result/video.rb +32 -0
  366. data/lib/tdlib/types/input_inline_query_result/voice_note.rb +21 -0
  367. data/lib/tdlib/types/input_message_content.rb +26 -0
  368. data/lib/tdlib/types/input_message_content/animation.rb +21 -0
  369. data/lib/tdlib/types/input_message_content/audio.rb +18 -0
  370. data/lib/tdlib/types/input_message_content/contact.rb +8 -0
  371. data/lib/tdlib/types/input_message_content/dice.rb +10 -0
  372. data/lib/tdlib/types/input_message_content/document.rb +16 -0
  373. data/lib/tdlib/types/input_message_content/forwarded.rb +16 -0
  374. data/lib/tdlib/types/input_message_content/game.rb +10 -0
  375. data/lib/tdlib/types/input_message_content/invoice.rb +29 -0
  376. data/lib/tdlib/types/input_message_content/location.rb +19 -0
  377. data/lib/tdlib/types/input_message_content/photo.rb +22 -0
  378. data/lib/tdlib/types/input_message_content/poll.rb +24 -0
  379. data/lib/tdlib/types/input_message_content/sticker.rb +16 -0
  380. data/lib/tdlib/types/input_message_content/text.rb +15 -0
  381. data/lib/tdlib/types/input_message_content/venue.rb +8 -0
  382. data/lib/tdlib/types/input_message_content/video.rb +25 -0
  383. data/lib/tdlib/types/input_message_content/video_note.rb +14 -0
  384. data/lib/tdlib/types/input_message_content/voice_note.rb +14 -0
  385. data/lib/tdlib/types/input_passport_element.rb +22 -0
  386. data/lib/tdlib/types/input_passport_element/address.rb +8 -0
  387. data/lib/tdlib/types/input_passport_element/bank_statement.rb +8 -0
  388. data/lib/tdlib/types/input_passport_element/driver_license.rb +8 -0
  389. data/lib/tdlib/types/input_passport_element/email_address.rb +8 -0
  390. data/lib/tdlib/types/input_passport_element/identity_card.rb +8 -0
  391. data/lib/tdlib/types/input_passport_element/internal_passport.rb +8 -0
  392. data/lib/tdlib/types/input_passport_element/passport.rb +8 -0
  393. data/lib/tdlib/types/input_passport_element/passport_registration.rb +8 -0
  394. data/lib/tdlib/types/input_passport_element/personal_details.rb +8 -0
  395. data/lib/tdlib/types/input_passport_element/phone_number.rb +8 -0
  396. data/lib/tdlib/types/input_passport_element/rental_agreement.rb +8 -0
  397. data/lib/tdlib/types/input_passport_element/temporary_registration.rb +8 -0
  398. data/lib/tdlib/types/input_passport_element/utility_bill.rb +8 -0
  399. data/lib/tdlib/types/input_passport_element_error.rb +12 -0
  400. data/lib/tdlib/types/input_passport_element_error_source.rb +18 -0
  401. data/lib/tdlib/types/input_passport_element_error_source/data_field.rb +11 -0
  402. data/lib/tdlib/types/input_passport_element_error_source/file.rb +9 -0
  403. data/lib/tdlib/types/input_passport_element_error_source/files.rb +9 -0
  404. data/lib/tdlib/types/input_passport_element_error_source/front_side.rb +9 -0
  405. data/lib/tdlib/types/input_passport_element_error_source/reverse_side.rb +9 -0
  406. data/lib/tdlib/types/input_passport_element_error_source/selfie.rb +9 -0
  407. data/lib/tdlib/types/input_passport_element_error_source/translation_file.rb +9 -0
  408. data/lib/tdlib/types/input_passport_element_error_source/translation_files.rb +9 -0
  409. data/lib/tdlib/types/input_passport_element_error_source/unspecified.rb +9 -0
  410. data/lib/tdlib/types/input_personal_document.rb +11 -0
  411. data/lib/tdlib/types/input_sticker.rb +11 -0
  412. data/lib/tdlib/types/input_sticker/animated.rb +12 -0
  413. data/lib/tdlib/types/input_sticker/static.rb +14 -0
  414. data/lib/tdlib/types/input_thumbnail.rb +16 -0
  415. data/lib/tdlib/types/invoice.rb +31 -0
  416. data/lib/tdlib/types/json_object_member.rb +10 -0
  417. data/lib/tdlib/types/json_value.rb +15 -0
  418. data/lib/tdlib/types/json_value/array.rb +8 -0
  419. data/lib/tdlib/types/json_value/boolean.rb +8 -0
  420. data/lib/tdlib/types/json_value/null.rb +5 -0
  421. data/lib/tdlib/types/json_value/number.rb +8 -0
  422. data/lib/tdlib/types/json_value/object.rb +8 -0
  423. data/lib/tdlib/types/json_value/string.rb +8 -0
  424. data/lib/tdlib/types/keyboard_button.rb +10 -0
  425. data/lib/tdlib/types/keyboard_button_type.rb +13 -0
  426. data/lib/tdlib/types/keyboard_button_type/request_location.rb +5 -0
  427. data/lib/tdlib/types/keyboard_button_type/request_phone_number.rb +5 -0
  428. data/lib/tdlib/types/keyboard_button_type/request_poll.rb +10 -0
  429. data/lib/tdlib/types/keyboard_button_type/text.rb +5 -0
  430. data/lib/tdlib/types/labeled_price_part.rb +10 -0
  431. data/lib/tdlib/types/language_pack_info.rb +35 -0
  432. data/lib/tdlib/types/language_pack_string.rb +10 -0
  433. data/lib/tdlib/types/language_pack_string_value.rb +12 -0
  434. data/lib/tdlib/types/language_pack_string_value/deleted.rb +5 -0
  435. data/lib/tdlib/types/language_pack_string_value/ordinary.rb +8 -0
  436. data/lib/tdlib/types/language_pack_string_value/pluralized.rb +19 -0
  437. data/lib/tdlib/types/language_pack_strings.rb +8 -0
  438. data/lib/tdlib/types/local_file.rb +28 -0
  439. data/lib/tdlib/types/localization_target_info.rb +8 -0
  440. data/lib/tdlib/types/location.rb +14 -0
  441. data/lib/tdlib/types/log_stream.rb +12 -0
  442. data/lib/tdlib/types/log_stream/default.rb +5 -0
  443. data/lib/tdlib/types/log_stream/empty.rb +5 -0
  444. data/lib/tdlib/types/log_stream/file.rb +14 -0
  445. data/lib/tdlib/types/log_tags.rb +8 -0
  446. data/lib/tdlib/types/log_verbosity_level.rb +8 -0
  447. data/lib/tdlib/types/login_url_info.rb +11 -0
  448. data/lib/tdlib/types/login_url_info/open.rb +10 -0
  449. data/lib/tdlib/types/login_url_info/request_confirmation.rb +15 -0
  450. data/lib/tdlib/types/mask_point.rb +13 -0
  451. data/lib/tdlib/types/mask_point/chin.rb +5 -0
  452. data/lib/tdlib/types/mask_point/eyes.rb +5 -0
  453. data/lib/tdlib/types/mask_point/forehead.rb +5 -0
  454. data/lib/tdlib/types/mask_point/mouth.rb +5 -0
  455. data/lib/tdlib/types/mask_position.rb +17 -0
  456. data/lib/tdlib/types/message.rb +79 -0
  457. data/lib/tdlib/types/message_content.rb +55 -0
  458. data/lib/tdlib/types/message_content/animation.rb +13 -0
  459. data/lib/tdlib/types/message_content/audio.rb +10 -0
  460. data/lib/tdlib/types/message_content/basic_group_chat_create.rb +10 -0
  461. data/lib/tdlib/types/message_content/call.rb +12 -0
  462. data/lib/tdlib/types/message_content/chat_add_members.rb +8 -0
  463. data/lib/tdlib/types/message_content/chat_change_photo.rb +8 -0
  464. data/lib/tdlib/types/message_content/chat_change_title.rb +8 -0
  465. data/lib/tdlib/types/message_content/chat_delete_member.rb +8 -0
  466. data/lib/tdlib/types/message_content/chat_delete_photo.rb +5 -0
  467. data/lib/tdlib/types/message_content/chat_join_by_link.rb +5 -0
  468. data/lib/tdlib/types/message_content/chat_set_ttl.rb +8 -0
  469. data/lib/tdlib/types/message_content/chat_upgrade_from.rb +10 -0
  470. data/lib/tdlib/types/message_content/chat_upgrade_to.rb +8 -0
  471. data/lib/tdlib/types/message_content/contact.rb +8 -0
  472. data/lib/tdlib/types/message_content/contact_registered.rb +5 -0
  473. data/lib/tdlib/types/message_content/custom_service_action.rb +8 -0
  474. data/lib/tdlib/types/message_content/dice.rb +23 -0
  475. data/lib/tdlib/types/message_content/document.rb +10 -0
  476. data/lib/tdlib/types/message_content/expired_photo.rb +5 -0
  477. data/lib/tdlib/types/message_content/expired_video.rb +5 -0
  478. data/lib/tdlib/types/message_content/game.rb +8 -0
  479. data/lib/tdlib/types/message_content/game_score.rb +13 -0
  480. data/lib/tdlib/types/message_content/invite_voice_chat_participants.rb +11 -0
  481. data/lib/tdlib/types/message_content/invoice.rb +26 -0
  482. data/lib/tdlib/types/message_content/location.rb +22 -0
  483. data/lib/tdlib/types/message_content/passport_data_received.rb +10 -0
  484. data/lib/tdlib/types/message_content/passport_data_sent.rb +8 -0
  485. data/lib/tdlib/types/message_content/payment_successful.rb +15 -0
  486. data/lib/tdlib/types/message_content/payment_successful_bot.rb +21 -0
  487. data/lib/tdlib/types/message_content/photo.rb +12 -0
  488. data/lib/tdlib/types/message_content/pin_message.rb +8 -0
  489. data/lib/tdlib/types/message_content/poll.rb +8 -0
  490. data/lib/tdlib/types/message_content/proximity_alert_triggered.rb +12 -0
  491. data/lib/tdlib/types/message_content/screenshot_taken.rb +5 -0
  492. data/lib/tdlib/types/message_content/sticker.rb +8 -0
  493. data/lib/tdlib/types/message_content/supergroup_chat_create.rb +8 -0
  494. data/lib/tdlib/types/message_content/text.rb +10 -0
  495. data/lib/tdlib/types/message_content/unsupported.rb +5 -0
  496. data/lib/tdlib/types/message_content/venue.rb +8 -0
  497. data/lib/tdlib/types/message_content/video.rb +13 -0
  498. data/lib/tdlib/types/message_content/video_note.rb +13 -0
  499. data/lib/tdlib/types/message_content/voice_chat_ended.rb +8 -0
  500. data/lib/tdlib/types/message_content/voice_chat_scheduled.rb +12 -0
  501. data/lib/tdlib/types/message_content/voice_chat_started.rb +9 -0
  502. data/lib/tdlib/types/message_content/voice_note.rb +12 -0
  503. data/lib/tdlib/types/message_content/website_connected.rb +8 -0
  504. data/lib/tdlib/types/message_copy_options.rb +17 -0
  505. data/lib/tdlib/types/message_file_type.rb +12 -0
  506. data/lib/tdlib/types/message_file_type/group.rb +8 -0
  507. data/lib/tdlib/types/message_file_type/private.rb +8 -0
  508. data/lib/tdlib/types/message_file_type/unknown.rb +5 -0
  509. data/lib/tdlib/types/message_forward_info.rb +21 -0
  510. data/lib/tdlib/types/message_forward_origin.rb +14 -0
  511. data/lib/tdlib/types/message_forward_origin/channel.rb +12 -0
  512. data/lib/tdlib/types/message_forward_origin/chat.rb +10 -0
  513. data/lib/tdlib/types/message_forward_origin/hidden_user.rb +8 -0
  514. data/lib/tdlib/types/message_forward_origin/message_import.rb +8 -0
  515. data/lib/tdlib/types/message_forward_origin/user.rb +8 -0
  516. data/lib/tdlib/types/message_interaction_info.rb +15 -0
  517. data/lib/tdlib/types/message_link.rb +10 -0
  518. data/lib/tdlib/types/message_link_info.rb +16 -0
  519. data/lib/tdlib/types/message_reply_info.rb +17 -0
  520. data/lib/tdlib/types/message_scheduling_state.rb +11 -0
  521. data/lib/tdlib/types/message_scheduling_state/send_at_date.rb +9 -0
  522. data/lib/tdlib/types/message_scheduling_state/send_when_online.rb +6 -0
  523. data/lib/tdlib/types/message_send_options.rb +13 -0
  524. data/lib/tdlib/types/message_sender.rb +11 -0
  525. data/lib/tdlib/types/message_sender/chat.rb +8 -0
  526. data/lib/tdlib/types/message_sender/user.rb +8 -0
  527. data/lib/tdlib/types/message_senders.rb +10 -0
  528. data/lib/tdlib/types/message_sending_state.rb +11 -0
  529. data/lib/tdlib/types/message_sending_state/failed.rb +15 -0
  530. data/lib/tdlib/types/message_sending_state/pending.rb +5 -0
  531. data/lib/tdlib/types/message_statistics.rb +9 -0
  532. data/lib/tdlib/types/message_thread_info.rb +17 -0
  533. data/lib/tdlib/types/messages.rb +10 -0
  534. data/lib/tdlib/types/minithumbnail.rb +12 -0
  535. data/lib/tdlib/types/network_statistics.rb +10 -0
  536. data/lib/tdlib/types/network_statistics_entry.rb +11 -0
  537. data/lib/tdlib/types/network_statistics_entry/call.rb +15 -0
  538. data/lib/tdlib/types/network_statistics_entry/file.rb +15 -0
  539. data/lib/tdlib/types/network_type.rb +14 -0
  540. data/lib/tdlib/types/network_type/mobile.rb +5 -0
  541. data/lib/tdlib/types/network_type/mobile_roaming.rb +5 -0
  542. data/lib/tdlib/types/network_type/none.rb +5 -0
  543. data/lib/tdlib/types/network_type/other.rb +5 -0
  544. data/lib/tdlib/types/network_type/wi_fi.rb +5 -0
  545. data/lib/tdlib/types/notification.rb +14 -0
  546. data/lib/tdlib/types/notification_group.rb +16 -0
  547. data/lib/tdlib/types/notification_group_type.rb +13 -0
  548. data/lib/tdlib/types/notification_group_type/calls.rb +5 -0
  549. data/lib/tdlib/types/notification_group_type/mentions.rb +6 -0
  550. data/lib/tdlib/types/notification_group_type/messages.rb +6 -0
  551. data/lib/tdlib/types/notification_group_type/secret_chat.rb +5 -0
  552. data/lib/tdlib/types/notification_settings_scope.rb +12 -0
  553. data/lib/tdlib/types/notification_settings_scope/channel_chats.rb +5 -0
  554. data/lib/tdlib/types/notification_settings_scope/group_chats.rb +6 -0
  555. data/lib/tdlib/types/notification_settings_scope/private_chats.rb +6 -0
  556. data/lib/tdlib/types/notification_type.rb +13 -0
  557. data/lib/tdlib/types/notification_type/new_call.rb +8 -0
  558. data/lib/tdlib/types/notification_type/new_message.rb +8 -0
  559. data/lib/tdlib/types/notification_type/new_push_message.rb +19 -0
  560. data/lib/tdlib/types/notification_type/new_secret_chat.rb +5 -0
  561. data/lib/tdlib/types/ok.rb +5 -0
  562. data/lib/tdlib/types/option_value.rb +13 -0
  563. data/lib/tdlib/types/option_value/boolean.rb +8 -0
  564. data/lib/tdlib/types/option_value/empty.rb +5 -0
  565. data/lib/tdlib/types/option_value/integer.rb +8 -0
  566. data/lib/tdlib/types/option_value/string.rb +8 -0
  567. data/lib/tdlib/types/order_info.rb +14 -0
  568. data/lib/tdlib/types/page_block.rb +38 -0
  569. data/lib/tdlib/types/page_block/anchor.rb +8 -0
  570. data/lib/tdlib/types/page_block/animation.rb +12 -0
  571. data/lib/tdlib/types/page_block/audio.rb +10 -0
  572. data/lib/tdlib/types/page_block/author_date.rb +10 -0
  573. data/lib/tdlib/types/page_block/block_quote.rb +10 -0
  574. data/lib/tdlib/types/page_block/chat_link.rb +12 -0
  575. data/lib/tdlib/types/page_block/collage.rb +10 -0
  576. data/lib/tdlib/types/page_block/cover.rb +8 -0
  577. data/lib/tdlib/types/page_block/details.rb +12 -0
  578. data/lib/tdlib/types/page_block/divider.rb +5 -0
  579. data/lib/tdlib/types/page_block/embedded.rb +22 -0
  580. data/lib/tdlib/types/page_block/embedded_post.rb +18 -0
  581. data/lib/tdlib/types/page_block/footer.rb +8 -0
  582. data/lib/tdlib/types/page_block/header.rb +8 -0
  583. data/lib/tdlib/types/page_block/kicker.rb +8 -0
  584. data/lib/tdlib/types/page_block/list.rb +8 -0
  585. data/lib/tdlib/types/page_block/map.rb +16 -0
  586. data/lib/tdlib/types/page_block/paragraph.rb +8 -0
  587. data/lib/tdlib/types/page_block/photo.rb +12 -0
  588. data/lib/tdlib/types/page_block/preformatted.rb +10 -0
  589. data/lib/tdlib/types/page_block/pull_quote.rb +10 -0
  590. data/lib/tdlib/types/page_block/related_articles.rb +10 -0
  591. data/lib/tdlib/types/page_block/slideshow.rb +10 -0
  592. data/lib/tdlib/types/page_block/subheader.rb +8 -0
  593. data/lib/tdlib/types/page_block/subtitle.rb +8 -0
  594. data/lib/tdlib/types/page_block/table.rb +14 -0
  595. data/lib/tdlib/types/page_block/title.rb +8 -0
  596. data/lib/tdlib/types/page_block/video.rb +14 -0
  597. data/lib/tdlib/types/page_block/voice_note.rb +10 -0
  598. data/lib/tdlib/types/page_block_caption.rb +10 -0
  599. data/lib/tdlib/types/page_block_horizontal_alignment.rb +12 -0
  600. data/lib/tdlib/types/page_block_horizontal_alignment/center.rb +5 -0
  601. data/lib/tdlib/types/page_block_horizontal_alignment/left.rb +5 -0
  602. data/lib/tdlib/types/page_block_horizontal_alignment/right.rb +5 -0
  603. data/lib/tdlib/types/page_block_list_item.rb +10 -0
  604. data/lib/tdlib/types/page_block_related_article.rb +18 -0
  605. data/lib/tdlib/types/page_block_table_cell.rb +19 -0
  606. data/lib/tdlib/types/page_block_vertical_alignment.rb +12 -0
  607. data/lib/tdlib/types/page_block_vertical_alignment/bottom.rb +5 -0
  608. data/lib/tdlib/types/page_block_vertical_alignment/middle.rb +5 -0
  609. data/lib/tdlib/types/page_block_vertical_alignment/top.rb +5 -0
  610. data/lib/tdlib/types/passport_authorization_form.rb +13 -0
  611. data/lib/tdlib/types/passport_element.rb +22 -0
  612. data/lib/tdlib/types/passport_element/address.rb +8 -0
  613. data/lib/tdlib/types/passport_element/bank_statement.rb +8 -0
  614. data/lib/tdlib/types/passport_element/driver_license.rb +8 -0
  615. data/lib/tdlib/types/passport_element/email_address.rb +8 -0
  616. data/lib/tdlib/types/passport_element/identity_card.rb +8 -0
  617. data/lib/tdlib/types/passport_element/internal_passport.rb +8 -0
  618. data/lib/tdlib/types/passport_element/passport.rb +8 -0
  619. data/lib/tdlib/types/passport_element/passport_registration.rb +8 -0
  620. data/lib/tdlib/types/passport_element/personal_details.rb +8 -0
  621. data/lib/tdlib/types/passport_element/phone_number.rb +8 -0
  622. data/lib/tdlib/types/passport_element/rental_agreement.rb +8 -0
  623. data/lib/tdlib/types/passport_element/temporary_registration.rb +8 -0
  624. data/lib/tdlib/types/passport_element/utility_bill.rb +8 -0
  625. data/lib/tdlib/types/passport_element_error.rb +12 -0
  626. data/lib/tdlib/types/passport_element_error_source.rb +18 -0
  627. data/lib/tdlib/types/passport_element_error_source/data_field.rb +9 -0
  628. data/lib/tdlib/types/passport_element_error_source/file.rb +9 -0
  629. data/lib/tdlib/types/passport_element_error_source/files.rb +6 -0
  630. data/lib/tdlib/types/passport_element_error_source/front_side.rb +6 -0
  631. data/lib/tdlib/types/passport_element_error_source/reverse_side.rb +6 -0
  632. data/lib/tdlib/types/passport_element_error_source/selfie.rb +6 -0
  633. data/lib/tdlib/types/passport_element_error_source/translation_file.rb +9 -0
  634. data/lib/tdlib/types/passport_element_error_source/translation_files.rb +6 -0
  635. data/lib/tdlib/types/passport_element_error_source/unspecified.rb +6 -0
  636. data/lib/tdlib/types/passport_element_type.rb +22 -0
  637. data/lib/tdlib/types/passport_element_type/address.rb +5 -0
  638. data/lib/tdlib/types/passport_element_type/bank_statement.rb +5 -0
  639. data/lib/tdlib/types/passport_element_type/driver_license.rb +5 -0
  640. data/lib/tdlib/types/passport_element_type/email_address.rb +5 -0
  641. data/lib/tdlib/types/passport_element_type/identity_card.rb +5 -0
  642. data/lib/tdlib/types/passport_element_type/internal_passport.rb +5 -0
  643. data/lib/tdlib/types/passport_element_type/passport.rb +5 -0
  644. data/lib/tdlib/types/passport_element_type/passport_registration.rb +5 -0
  645. data/lib/tdlib/types/passport_element_type/personal_details.rb +5 -0
  646. data/lib/tdlib/types/passport_element_type/phone_number.rb +5 -0
  647. data/lib/tdlib/types/passport_element_type/rental_agreement.rb +5 -0
  648. data/lib/tdlib/types/passport_element_type/temporary_registration.rb +5 -0
  649. data/lib/tdlib/types/passport_element_type/utility_bill.rb +5 -0
  650. data/lib/tdlib/types/passport_elements.rb +8 -0
  651. data/lib/tdlib/types/passport_elements_with_errors.rb +10 -0
  652. data/lib/tdlib/types/passport_required_element.rb +9 -0
  653. data/lib/tdlib/types/passport_suitable_element.rb +15 -0
  654. data/lib/tdlib/types/password_state.rb +17 -0
  655. data/lib/tdlib/types/payment_form.rb +29 -0
  656. data/lib/tdlib/types/payment_form_theme.rb +18 -0
  657. data/lib/tdlib/types/payment_receipt.rb +28 -0
  658. data/lib/tdlib/types/payment_result.rb +11 -0
  659. data/lib/tdlib/types/payments_provider_stripe.rb +14 -0
  660. data/lib/tdlib/types/personal_details.rb +26 -0
  661. data/lib/tdlib/types/personal_document.rb +11 -0
  662. data/lib/tdlib/types/phone_number_authentication_settings.rb +16 -0
  663. data/lib/tdlib/types/phone_number_info.rb +14 -0
  664. data/lib/tdlib/types/photo.rb +13 -0
  665. data/lib/tdlib/types/photo_size.rb +17 -0
  666. data/lib/tdlib/types/point.rb +10 -0
  667. data/lib/tdlib/types/poll.rb +26 -0
  668. data/lib/tdlib/types/poll_option.rb +16 -0
  669. data/lib/tdlib/types/poll_type.rb +11 -0
  670. data/lib/tdlib/types/poll_type/quiz.rb +11 -0
  671. data/lib/tdlib/types/poll_type/regular.rb +8 -0
  672. data/lib/tdlib/types/profile_photo.rb +19 -0
  673. data/lib/tdlib/types/proxies.rb +8 -0
  674. data/lib/tdlib/types/proxy.rb +18 -0
  675. data/lib/tdlib/types/proxy_type.rb +12 -0
  676. data/lib/tdlib/types/proxy_type/http.rb +13 -0
  677. data/lib/tdlib/types/proxy_type/mtproto.rb +8 -0
  678. data/lib/tdlib/types/proxy_type/socks5.rb +10 -0
  679. data/lib/tdlib/types/public_chat_type.rb +11 -0
  680. data/lib/tdlib/types/public_chat_type/has_username.rb +5 -0
  681. data/lib/tdlib/types/public_chat_type/is_location_based.rb +5 -0
  682. data/lib/tdlib/types/push_message_content.rb +35 -0
  683. data/lib/tdlib/types/push_message_content/animation.rb +12 -0
  684. data/lib/tdlib/types/push_message_content/audio.rb +10 -0
  685. data/lib/tdlib/types/push_message_content/basic_group_chat_create.rb +5 -0
  686. data/lib/tdlib/types/push_message_content/chat_add_members.rb +12 -0
  687. data/lib/tdlib/types/push_message_content/chat_change_photo.rb +5 -0
  688. data/lib/tdlib/types/push_message_content/chat_change_title.rb +8 -0
  689. data/lib/tdlib/types/push_message_content/chat_delete_member.rb +12 -0
  690. data/lib/tdlib/types/push_message_content/chat_join_by_link.rb +5 -0
  691. data/lib/tdlib/types/push_message_content/contact.rb +10 -0
  692. data/lib/tdlib/types/push_message_content/contact_registered.rb +5 -0
  693. data/lib/tdlib/types/push_message_content/document.rb +10 -0
  694. data/lib/tdlib/types/push_message_content/game.rb +10 -0
  695. data/lib/tdlib/types/push_message_content/game_score.rb +12 -0
  696. data/lib/tdlib/types/push_message_content/hidden.rb +8 -0
  697. data/lib/tdlib/types/push_message_content/invoice.rb +10 -0
  698. data/lib/tdlib/types/push_message_content/location.rb +10 -0
  699. data/lib/tdlib/types/push_message_content/media_album.rb +16 -0
  700. data/lib/tdlib/types/push_message_content/message_forwards.rb +8 -0
  701. data/lib/tdlib/types/push_message_content/photo.rb +14 -0
  702. data/lib/tdlib/types/push_message_content/poll.rb +12 -0
  703. data/lib/tdlib/types/push_message_content/screenshot_taken.rb +5 -0
  704. data/lib/tdlib/types/push_message_content/sticker.rb +12 -0
  705. data/lib/tdlib/types/push_message_content/text.rb +10 -0
  706. data/lib/tdlib/types/push_message_content/video.rb +14 -0
  707. data/lib/tdlib/types/push_message_content/video_note.rb +10 -0
  708. data/lib/tdlib/types/push_message_content/voice_note.rb +10 -0
  709. data/lib/tdlib/types/push_receiver_id.rb +9 -0
  710. data/lib/tdlib/types/recommended_chat_filter.rb +10 -0
  711. data/lib/tdlib/types/recommended_chat_filters.rb +8 -0
  712. data/lib/tdlib/types/recovery_email_address.rb +8 -0
  713. data/lib/tdlib/types/remote_file.rb +27 -0
  714. data/lib/tdlib/types/reply_markup.rb +13 -0
  715. data/lib/tdlib/types/reply_markup/force_reply.rb +10 -0
  716. data/lib/tdlib/types/reply_markup/inline_keyboard.rb +8 -0
  717. data/lib/tdlib/types/reply_markup/remove_keyboard.rb +11 -0
  718. data/lib/tdlib/types/reply_markup/show_keyboard.rb +16 -0
  719. data/lib/tdlib/types/rich_text.rb +26 -0
  720. data/lib/tdlib/types/rich_text/anchor.rb +8 -0
  721. data/lib/tdlib/types/rich_text/anchor_link.rb +13 -0
  722. data/lib/tdlib/types/rich_text/bold.rb +8 -0
  723. data/lib/tdlib/types/rich_text/email_address.rb +10 -0
  724. data/lib/tdlib/types/rich_text/fixed.rb +8 -0
  725. data/lib/tdlib/types/rich_text/icon.rb +13 -0
  726. data/lib/tdlib/types/rich_text/italic.rb +8 -0
  727. data/lib/tdlib/types/rich_text/marked.rb +8 -0
  728. data/lib/tdlib/types/rich_text/phone_number.rb +10 -0
  729. data/lib/tdlib/types/rich_text/plain.rb +8 -0
  730. data/lib/tdlib/types/rich_text/reference.rb +13 -0
  731. data/lib/tdlib/types/rich_text/s.rb +8 -0
  732. data/lib/tdlib/types/rich_text/strikethrough.rb +8 -0
  733. data/lib/tdlib/types/rich_text/subscript.rb +8 -0
  734. data/lib/tdlib/types/rich_text/superscript.rb +8 -0
  735. data/lib/tdlib/types/rich_text/underline.rb +8 -0
  736. data/lib/tdlib/types/rich_text/url.rb +12 -0
  737. data/lib/tdlib/types/saved_credentials.rb +10 -0
  738. data/lib/tdlib/types/scope_notification_settings.rb +19 -0
  739. data/lib/tdlib/types/search_messages_filter.rb +27 -0
  740. data/lib/tdlib/types/search_messages_filter/animation.rb +5 -0
  741. data/lib/tdlib/types/search_messages_filter/audio.rb +5 -0
  742. data/lib/tdlib/types/search_messages_filter/call.rb +5 -0
  743. data/lib/tdlib/types/search_messages_filter/chat_photo.rb +5 -0
  744. data/lib/tdlib/types/search_messages_filter/document.rb +5 -0
  745. data/lib/tdlib/types/search_messages_filter/empty.rb +5 -0
  746. data/lib/tdlib/types/search_messages_filter/failed_to_send.rb +6 -0
  747. data/lib/tdlib/types/search_messages_filter/mention.rb +5 -0
  748. data/lib/tdlib/types/search_messages_filter/missed_call.rb +5 -0
  749. data/lib/tdlib/types/search_messages_filter/photo.rb +5 -0
  750. data/lib/tdlib/types/search_messages_filter/photo_and_video.rb +5 -0
  751. data/lib/tdlib/types/search_messages_filter/pinned.rb +5 -0
  752. data/lib/tdlib/types/search_messages_filter/unread_mention.rb +7 -0
  753. data/lib/tdlib/types/search_messages_filter/url.rb +5 -0
  754. data/lib/tdlib/types/search_messages_filter/video.rb +5 -0
  755. data/lib/tdlib/types/search_messages_filter/video_note.rb +5 -0
  756. data/lib/tdlib/types/search_messages_filter/voice_and_video_note.rb +5 -0
  757. data/lib/tdlib/types/search_messages_filter/voice_note.rb +5 -0
  758. data/lib/tdlib/types/seconds.rb +8 -0
  759. data/lib/tdlib/types/secret_chat.rb +25 -0
  760. data/lib/tdlib/types/secret_chat_state.rb +12 -0
  761. data/lib/tdlib/types/secret_chat_state/closed.rb +5 -0
  762. data/lib/tdlib/types/secret_chat_state/pending.rb +5 -0
  763. data/lib/tdlib/types/secret_chat_state/ready.rb +5 -0
  764. data/lib/tdlib/types/session.rb +42 -0
  765. data/lib/tdlib/types/sessions.rb +8 -0
  766. data/lib/tdlib/types/shipping_option.rb +13 -0
  767. data/lib/tdlib/types/statistical_graph.rb +12 -0
  768. data/lib/tdlib/types/statistical_graph/async.rb +8 -0
  769. data/lib/tdlib/types/statistical_graph/data.rb +10 -0
  770. data/lib/tdlib/types/statistical_graph/error.rb +8 -0
  771. data/lib/tdlib/types/statistical_value.rb +12 -0
  772. data/lib/tdlib/types/sticker.rb +28 -0
  773. data/lib/tdlib/types/sticker_set.rb +39 -0
  774. data/lib/tdlib/types/sticker_set_info.rb +38 -0
  775. data/lib/tdlib/types/sticker_sets.rb +10 -0
  776. data/lib/tdlib/types/stickers.rb +8 -0
  777. data/lib/tdlib/types/storage_statistics.rb +12 -0
  778. data/lib/tdlib/types/storage_statistics_by_chat.rb +14 -0
  779. data/lib/tdlib/types/storage_statistics_by_file_type.rb +12 -0
  780. data/lib/tdlib/types/storage_statistics_fast.rb +16 -0
  781. data/lib/tdlib/types/suggested_action.rb +13 -0
  782. data/lib/tdlib/types/suggested_action/check_phone_number.rb +5 -0
  783. data/lib/tdlib/types/suggested_action/convert_to_broadcast_group.rb +8 -0
  784. data/lib/tdlib/types/suggested_action/enable_archive_and_mute_new_chats.rb +5 -0
  785. data/lib/tdlib/types/suggested_action/see_ticks_hint.rb +5 -0
  786. data/lib/tdlib/types/supergroup.rb +50 -0
  787. data/lib/tdlib/types/supergroup_full_info.rb +56 -0
  788. data/lib/tdlib/types/supergroup_members_filter.rb +17 -0
  789. data/lib/tdlib/types/supergroup_members_filter/administrators.rb +5 -0
  790. data/lib/tdlib/types/supergroup_members_filter/banned.rb +8 -0
  791. data/lib/tdlib/types/supergroup_members_filter/bots.rb +5 -0
  792. data/lib/tdlib/types/supergroup_members_filter/contacts.rb +8 -0
  793. data/lib/tdlib/types/supergroup_members_filter/mention.rb +10 -0
  794. data/lib/tdlib/types/supergroup_members_filter/recent.rb +5 -0
  795. data/lib/tdlib/types/supergroup_members_filter/restricted.rb +8 -0
  796. data/lib/tdlib/types/supergroup_members_filter/search.rb +8 -0
  797. data/lib/tdlib/types/t_me_url.rb +10 -0
  798. data/lib/tdlib/types/t_me_url_type.rb +13 -0
  799. data/lib/tdlib/types/t_me_url_type/chat_invite.rb +8 -0
  800. data/lib/tdlib/types/t_me_url_type/sticker_set.rb +8 -0
  801. data/lib/tdlib/types/t_me_url_type/supergroup.rb +8 -0
  802. data/lib/tdlib/types/t_me_url_type/user.rb +8 -0
  803. data/lib/tdlib/types/t_me_urls.rb +8 -0
  804. data/lib/tdlib/types/tdlib_parameters.rb +47 -0
  805. data/lib/tdlib/types/temporary_password_state.rb +10 -0
  806. data/lib/tdlib/types/terms_of_service.rb +12 -0
  807. data/lib/tdlib/types/text.rb +8 -0
  808. data/lib/tdlib/types/text_entities.rb +8 -0
  809. data/lib/tdlib/types/text_entity.rb +12 -0
  810. data/lib/tdlib/types/text_entity_type.rb +26 -0
  811. data/lib/tdlib/types/text_entity_type/bank_card_number.rb +6 -0
  812. data/lib/tdlib/types/text_entity_type/bold.rb +5 -0
  813. data/lib/tdlib/types/text_entity_type/bot_command.rb +6 -0
  814. data/lib/tdlib/types/text_entity_type/cashtag.rb +6 -0
  815. data/lib/tdlib/types/text_entity_type/code.rb +5 -0
  816. data/lib/tdlib/types/text_entity_type/email_address.rb +5 -0
  817. data/lib/tdlib/types/text_entity_type/hashtag.rb +5 -0
  818. data/lib/tdlib/types/text_entity_type/italic.rb +5 -0
  819. data/lib/tdlib/types/text_entity_type/mention.rb +5 -0
  820. data/lib/tdlib/types/text_entity_type/mention_name.rb +8 -0
  821. data/lib/tdlib/types/text_entity_type/phone_number.rb +5 -0
  822. data/lib/tdlib/types/text_entity_type/pre.rb +5 -0
  823. data/lib/tdlib/types/text_entity_type/pre_code.rb +8 -0
  824. data/lib/tdlib/types/text_entity_type/strikethrough.rb +5 -0
  825. data/lib/tdlib/types/text_entity_type/text_url.rb +8 -0
  826. data/lib/tdlib/types/text_entity_type/underline.rb +5 -0
  827. data/lib/tdlib/types/text_entity_type/url.rb +5 -0
  828. data/lib/tdlib/types/text_parse_mode.rb +11 -0
  829. data/lib/tdlib/types/text_parse_mode/html.rb +6 -0
  830. data/lib/tdlib/types/text_parse_mode/markdown.rb +9 -0
  831. data/lib/tdlib/types/thumbnail.rb +14 -0
  832. data/lib/tdlib/types/thumbnail_format.rb +15 -0
  833. data/lib/tdlib/types/thumbnail_format/gif.rb +6 -0
  834. data/lib/tdlib/types/thumbnail_format/jpeg.rb +5 -0
  835. data/lib/tdlib/types/thumbnail_format/mpeg4.rb +6 -0
  836. data/lib/tdlib/types/thumbnail_format/png.rb +6 -0
  837. data/lib/tdlib/types/thumbnail_format/tgs.rb +6 -0
  838. data/lib/tdlib/types/thumbnail_format/webp.rb +6 -0
  839. data/lib/tdlib/types/top_chat_category.rb +16 -0
  840. data/lib/tdlib/types/top_chat_category/bots.rb +5 -0
  841. data/lib/tdlib/types/top_chat_category/calls.rb +5 -0
  842. data/lib/tdlib/types/top_chat_category/channels.rb +5 -0
  843. data/lib/tdlib/types/top_chat_category/forward_chats.rb +5 -0
  844. data/lib/tdlib/types/top_chat_category/groups.rb +5 -0
  845. data/lib/tdlib/types/top_chat_category/inline_bots.rb +5 -0
  846. data/lib/tdlib/types/top_chat_category/users.rb +5 -0
  847. data/lib/tdlib/types/update.rb +94 -0
  848. data/lib/tdlib/types/update/active_notifications.rb +10 -0
  849. data/lib/tdlib/types/update/animation_search_parameters.rb +10 -0
  850. data/lib/tdlib/types/update/authorization_state.rb +8 -0
  851. data/lib/tdlib/types/update/basic_group.rb +9 -0
  852. data/lib/tdlib/types/update/basic_group_full_info.rb +10 -0
  853. data/lib/tdlib/types/update/call.rb +8 -0
  854. data/lib/tdlib/types/update/chat_action_bar.rb +10 -0
  855. data/lib/tdlib/types/update/chat_default_disable_notification.rb +10 -0
  856. data/lib/tdlib/types/update/chat_draft_message.rb +14 -0
  857. data/lib/tdlib/types/update/chat_filters.rb +8 -0
  858. data/lib/tdlib/types/update/chat_has_scheduled_messages.rb +10 -0
  859. data/lib/tdlib/types/update/chat_is_blocked.rb +10 -0
  860. data/lib/tdlib/types/update/chat_is_marked_as_unread.rb +10 -0
  861. data/lib/tdlib/types/update/chat_last_message.rb +14 -0
  862. data/lib/tdlib/types/update/chat_member.rb +19 -0
  863. data/lib/tdlib/types/update/chat_message_ttl_setting.rb +10 -0
  864. data/lib/tdlib/types/update/chat_notification_settings.rb +10 -0
  865. data/lib/tdlib/types/update/chat_online_member_count.rb +12 -0
  866. data/lib/tdlib/types/update/chat_permissions.rb +10 -0
  867. data/lib/tdlib/types/update/chat_photo.rb +10 -0
  868. data/lib/tdlib/types/update/chat_position.rb +12 -0
  869. data/lib/tdlib/types/update/chat_read_inbox.rb +12 -0
  870. data/lib/tdlib/types/update/chat_read_outbox.rb +10 -0
  871. data/lib/tdlib/types/update/chat_reply_markup.rb +13 -0
  872. data/lib/tdlib/types/update/chat_title.rb +10 -0
  873. data/lib/tdlib/types/update/chat_unread_mention_count.rb +10 -0
  874. data/lib/tdlib/types/update/chat_voice_chat.rb +10 -0
  875. data/lib/tdlib/types/update/connection_state.rb +9 -0
  876. data/lib/tdlib/types/update/delete_messages.rb +16 -0
  877. data/lib/tdlib/types/update/dice_emojis.rb +8 -0
  878. data/lib/tdlib/types/update/favorite_stickers.rb +8 -0
  879. data/lib/tdlib/types/update/file.rb +8 -0
  880. data/lib/tdlib/types/update/file_generation_start.rb +17 -0
  881. data/lib/tdlib/types/update/file_generation_stop.rb +8 -0
  882. data/lib/tdlib/types/update/group_call.rb +8 -0
  883. data/lib/tdlib/types/update/group_call_participant.rb +12 -0
  884. data/lib/tdlib/types/update/have_pending_notifications.rb +13 -0
  885. data/lib/tdlib/types/update/installed_sticker_sets.rb +10 -0
  886. data/lib/tdlib/types/update/language_pack_strings.rb +12 -0
  887. data/lib/tdlib/types/update/message_content.rb +12 -0
  888. data/lib/tdlib/types/update/message_content_opened.rb +12 -0
  889. data/lib/tdlib/types/update/message_edited.rb +15 -0
  890. data/lib/tdlib/types/update/message_interaction_info.rb +13 -0
  891. data/lib/tdlib/types/update/message_is_pinned.rb +12 -0
  892. data/lib/tdlib/types/update/message_live_location_viewed.rb +11 -0
  893. data/lib/tdlib/types/update/message_mention_read.rb +12 -0
  894. data/lib/tdlib/types/update/message_send_acknowledged.rb +14 -0
  895. data/lib/tdlib/types/update/message_send_failed.rb +16 -0
  896. data/lib/tdlib/types/update/message_send_succeeded.rb +11 -0
  897. data/lib/tdlib/types/update/new_call_signaling_data.rb +10 -0
  898. data/lib/tdlib/types/update/new_callback_query.rb +18 -0
  899. data/lib/tdlib/types/update/new_chat.rb +10 -0
  900. data/lib/tdlib/types/update/new_chosen_inline_result.rb +16 -0
  901. data/lib/tdlib/types/update/new_custom_event.rb +8 -0
  902. data/lib/tdlib/types/update/new_custom_query.rb +12 -0
  903. data/lib/tdlib/types/update/new_inline_callback_query.rb +16 -0
  904. data/lib/tdlib/types/update/new_inline_query.rb +19 -0
  905. data/lib/tdlib/types/update/new_message.rb +8 -0
  906. data/lib/tdlib/types/update/new_pre_checkout_query.rb +22 -0
  907. data/lib/tdlib/types/update/new_shipping_query.rb +15 -0
  908. data/lib/tdlib/types/update/notification.rb +10 -0
  909. data/lib/tdlib/types/update/notification_group.rb +26 -0
  910. data/lib/tdlib/types/update/option.rb +10 -0
  911. data/lib/tdlib/types/update/poll.rb +8 -0
  912. data/lib/tdlib/types/update/poll_answer.rb +12 -0
  913. data/lib/tdlib/types/update/recent_stickers.rb +11 -0
  914. data/lib/tdlib/types/update/saved_animations.rb +8 -0
  915. data/lib/tdlib/types/update/scope_notification_settings.rb +10 -0
  916. data/lib/tdlib/types/update/secret_chat.rb +9 -0
  917. data/lib/tdlib/types/update/selected_background.rb +10 -0
  918. data/lib/tdlib/types/update/service_notification.rb +13 -0
  919. data/lib/tdlib/types/update/sticker_set.rb +8 -0
  920. data/lib/tdlib/types/update/suggested_actions.rb +10 -0
  921. data/lib/tdlib/types/update/supergroup.rb +9 -0
  922. data/lib/tdlib/types/update/supergroup_full_info.rb +10 -0
  923. data/lib/tdlib/types/update/terms_of_service.rb +12 -0
  924. data/lib/tdlib/types/update/trending_sticker_sets.rb +9 -0
  925. data/lib/tdlib/types/update/unread_chat_count.rb +20 -0
  926. data/lib/tdlib/types/update/unread_message_count.rb +13 -0
  927. data/lib/tdlib/types/update/user.rb +9 -0
  928. data/lib/tdlib/types/update/user_chat_action.rb +14 -0
  929. data/lib/tdlib/types/update/user_full_info.rb +10 -0
  930. data/lib/tdlib/types/update/user_privacy_setting_rules.rb +10 -0
  931. data/lib/tdlib/types/update/user_status.rb +10 -0
  932. data/lib/tdlib/types/update/users_nearby.rb +9 -0
  933. data/lib/tdlib/types/updates.rb +8 -0
  934. data/lib/tdlib/types/user.rb +44 -0
  935. data/lib/tdlib/types/user_full_info.rb +28 -0
  936. data/lib/tdlib/types/user_privacy_setting.rb +17 -0
  937. data/lib/tdlib/types/user_privacy_setting/allow_calls.rb +5 -0
  938. data/lib/tdlib/types/user_privacy_setting/allow_chat_invites.rb +5 -0
  939. data/lib/tdlib/types/user_privacy_setting/allow_finding_by_phone_number.rb +7 -0
  940. data/lib/tdlib/types/user_privacy_setting/allow_peer_to_peer_calls.rb +5 -0
  941. data/lib/tdlib/types/user_privacy_setting/show_link_in_forwarded_messages.rb +5 -0
  942. data/lib/tdlib/types/user_privacy_setting/show_phone_number.rb +5 -0
  943. data/lib/tdlib/types/user_privacy_setting/show_profile_photo.rb +5 -0
  944. data/lib/tdlib/types/user_privacy_setting/show_status.rb +5 -0
  945. data/lib/tdlib/types/user_privacy_setting_rule.rb +17 -0
  946. data/lib/tdlib/types/user_privacy_setting_rule/allow_all.rb +5 -0
  947. data/lib/tdlib/types/user_privacy_setting_rule/allow_chat_members.rb +8 -0
  948. data/lib/tdlib/types/user_privacy_setting_rule/allow_contacts.rb +5 -0
  949. data/lib/tdlib/types/user_privacy_setting_rule/allow_users.rb +8 -0
  950. data/lib/tdlib/types/user_privacy_setting_rule/restrict_all.rb +5 -0
  951. data/lib/tdlib/types/user_privacy_setting_rule/restrict_chat_members.rb +8 -0
  952. data/lib/tdlib/types/user_privacy_setting_rule/restrict_contacts.rb +5 -0
  953. data/lib/tdlib/types/user_privacy_setting_rule/restrict_users.rb +8 -0
  954. data/lib/tdlib/types/user_privacy_setting_rules.rb +11 -0
  955. data/lib/tdlib/types/user_status.rb +15 -0
  956. data/lib/tdlib/types/user_status/empty.rb +5 -0
  957. data/lib/tdlib/types/user_status/last_month.rb +5 -0
  958. data/lib/tdlib/types/user_status/last_week.rb +5 -0
  959. data/lib/tdlib/types/user_status/offline.rb +8 -0
  960. data/lib/tdlib/types/user_status/online.rb +8 -0
  961. data/lib/tdlib/types/user_status/recently.rb +5 -0
  962. data/lib/tdlib/types/user_type.rb +14 -0
  963. data/lib/tdlib/types/user_type/bot.rb +18 -0
  964. data/lib/tdlib/types/user_type/deleted.rb +7 -0
  965. data/lib/tdlib/types/user_type/regular.rb +5 -0
  966. data/lib/tdlib/types/user_type/unknown.rb +7 -0
  967. data/lib/tdlib/types/users.rb +10 -0
  968. data/lib/tdlib/types/validated_order_info.rb +11 -0
  969. data/lib/tdlib/types/vector_path_command.rb +11 -0
  970. data/lib/tdlib/types/vector_path_command/cubic_bezier_curve.rb +12 -0
  971. data/lib/tdlib/types/vector_path_command/line.rb +8 -0
  972. data/lib/tdlib/types/venue.rb +19 -0
  973. data/lib/tdlib/types/video.rb +28 -0
  974. data/lib/tdlib/types/video_note.rb +17 -0
  975. data/lib/tdlib/types/voice_chat.rb +14 -0
  976. data/lib/tdlib/types/voice_note.rb +16 -0
  977. data/lib/tdlib/types/web_page.rb +52 -0
  978. data/lib/tdlib/types/web_page_instant_view.rb +17 -0
  979. data/tdlib-schema.gemspec +43 -0
  980. metadata +1149 -0
data/lib/tdlib/td.rb ADDED
@@ -0,0 +1,2 @@
1
+ module TD
2
+ end
@@ -0,0 +1,1293 @@
1
+ require 'dry-struct'
2
+ require 'dry-types'
3
+
4
+ module TD::Types
5
+ include Dry.Types()
6
+
7
+ LOOKUP_TABLE = {
8
+ 'error' => 'Error',
9
+ 'ok' => 'Ok',
10
+ 'tdlibParameters' => 'TdlibParameters',
11
+ 'AuthenticationCodeType' => 'AuthenticationCodeType',
12
+ 'authenticationCodeTypeTelegramMessage' => 'AuthenticationCodeType::TelegramMessage',
13
+ 'authenticationCodeTypeSms' => 'AuthenticationCodeType::Sms',
14
+ 'authenticationCodeTypeCall' => 'AuthenticationCodeType::Call',
15
+ 'authenticationCodeTypeFlashCall' => 'AuthenticationCodeType::FlashCall',
16
+ 'authenticationCodeInfo' => 'AuthenticationCodeInfo',
17
+ 'emailAddressAuthenticationCodeInfo' => 'EmailAddressAuthenticationCodeInfo',
18
+ 'textEntity' => 'TextEntity',
19
+ 'textEntities' => 'TextEntities',
20
+ 'formattedText' => 'FormattedText',
21
+ 'termsOfService' => 'TermsOfService',
22
+ 'AuthorizationState' => 'AuthorizationState',
23
+ 'authorizationStateWaitTdlibParameters' => 'AuthorizationState::WaitTdlibParameters',
24
+ 'authorizationStateWaitEncryptionKey' => 'AuthorizationState::WaitEncryptionKey',
25
+ 'authorizationStateWaitPhoneNumber' => 'AuthorizationState::WaitPhoneNumber',
26
+ 'authorizationStateWaitCode' => 'AuthorizationState::WaitCode',
27
+ 'authorizationStateWaitOtherDeviceConfirmation' => 'AuthorizationState::WaitOtherDeviceConfirmation',
28
+ 'authorizationStateWaitRegistration' => 'AuthorizationState::WaitRegistration',
29
+ 'authorizationStateWaitPassword' => 'AuthorizationState::WaitPassword',
30
+ 'authorizationStateReady' => 'AuthorizationState::Ready',
31
+ 'authorizationStateLoggingOut' => 'AuthorizationState::LoggingOut',
32
+ 'authorizationStateClosing' => 'AuthorizationState::Closing',
33
+ 'authorizationStateClosed' => 'AuthorizationState::Closed',
34
+ 'passwordState' => 'PasswordState',
35
+ 'recoveryEmailAddress' => 'RecoveryEmailAddress',
36
+ 'temporaryPasswordState' => 'TemporaryPasswordState',
37
+ 'localFile' => 'LocalFile',
38
+ 'remoteFile' => 'RemoteFile',
39
+ 'file' => 'File',
40
+ 'InputFile' => 'InputFile',
41
+ 'inputFileId' => 'InputFile::Id',
42
+ 'inputFileRemote' => 'InputFile::Remote',
43
+ 'inputFileLocal' => 'InputFile::Local',
44
+ 'inputFileGenerated' => 'InputFile::Generated',
45
+ 'photoSize' => 'PhotoSize',
46
+ 'minithumbnail' => 'Minithumbnail',
47
+ 'ThumbnailFormat' => 'ThumbnailFormat',
48
+ 'thumbnailFormatJpeg' => 'ThumbnailFormat::Jpeg',
49
+ 'thumbnailFormatPng' => 'ThumbnailFormat::Png',
50
+ 'thumbnailFormatWebp' => 'ThumbnailFormat::Webp',
51
+ 'thumbnailFormatGif' => 'ThumbnailFormat::Gif',
52
+ 'thumbnailFormatTgs' => 'ThumbnailFormat::Tgs',
53
+ 'thumbnailFormatMpeg4' => 'ThumbnailFormat::Mpeg4',
54
+ 'thumbnail' => 'Thumbnail',
55
+ 'MaskPoint' => 'MaskPoint',
56
+ 'maskPointForehead' => 'MaskPoint::Forehead',
57
+ 'maskPointEyes' => 'MaskPoint::Eyes',
58
+ 'maskPointMouth' => 'MaskPoint::Mouth',
59
+ 'maskPointChin' => 'MaskPoint::Chin',
60
+ 'maskPosition' => 'MaskPosition',
61
+ 'closedVectorPath' => 'ClosedVectorPath',
62
+ 'pollOption' => 'PollOption',
63
+ 'PollType' => 'PollType',
64
+ 'pollTypeRegular' => 'PollType::Regular',
65
+ 'pollTypeQuiz' => 'PollType::Quiz',
66
+ 'animation' => 'Animation',
67
+ 'audio' => 'Audio',
68
+ 'document' => 'Document',
69
+ 'photo' => 'Photo',
70
+ 'sticker' => 'Sticker',
71
+ 'video' => 'Video',
72
+ 'videoNote' => 'VideoNote',
73
+ 'voiceNote' => 'VoiceNote',
74
+ 'contact' => 'Contact',
75
+ 'location' => 'Location',
76
+ 'venue' => 'Venue',
77
+ 'game' => 'Game',
78
+ 'poll' => 'Poll',
79
+ 'profilePhoto' => 'ProfilePhoto',
80
+ 'chatPhotoInfo' => 'ChatPhotoInfo',
81
+ 'UserType' => 'UserType',
82
+ 'userTypeRegular' => 'UserType::Regular',
83
+ 'userTypeDeleted' => 'UserType::Deleted',
84
+ 'userTypeBot' => 'UserType::Bot',
85
+ 'userTypeUnknown' => 'UserType::Unknown',
86
+ 'botCommand' => 'BotCommand',
87
+ 'botInfo' => 'BotInfo',
88
+ 'chatLocation' => 'ChatLocation',
89
+ 'animatedChatPhoto' => 'AnimatedChatPhoto',
90
+ 'chatPhoto' => 'ChatPhoto',
91
+ 'chatPhotos' => 'ChatPhotos',
92
+ 'InputChatPhoto' => 'InputChatPhoto',
93
+ 'inputChatPhotoPrevious' => 'InputChatPhoto::Previous',
94
+ 'inputChatPhotoStatic' => 'InputChatPhoto::Static',
95
+ 'inputChatPhotoAnimation' => 'InputChatPhoto::Animation',
96
+ 'user' => 'User',
97
+ 'userFullInfo' => 'UserFullInfo',
98
+ 'users' => 'Users',
99
+ 'chatAdministrator' => 'ChatAdministrator',
100
+ 'chatAdministrators' => 'ChatAdministrators',
101
+ 'chatPermissions' => 'ChatPermissions',
102
+ 'ChatMemberStatus' => 'ChatMemberStatus',
103
+ 'chatMemberStatusCreator' => 'ChatMemberStatus::Creator',
104
+ 'chatMemberStatusAdministrator' => 'ChatMemberStatus::Administrator',
105
+ 'chatMemberStatusMember' => 'ChatMemberStatus::Member',
106
+ 'chatMemberStatusRestricted' => 'ChatMemberStatus::Restricted',
107
+ 'chatMemberStatusLeft' => 'ChatMemberStatus::Left',
108
+ 'chatMemberStatusBanned' => 'ChatMemberStatus::Banned',
109
+ 'chatMember' => 'ChatMember',
110
+ 'chatMembers' => 'ChatMembers',
111
+ 'ChatMembersFilter' => 'ChatMembersFilter',
112
+ 'chatMembersFilterContacts' => 'ChatMembersFilter::Contacts',
113
+ 'chatMembersFilterAdministrators' => 'ChatMembersFilter::Administrators',
114
+ 'chatMembersFilterMembers' => 'ChatMembersFilter::Members',
115
+ 'chatMembersFilterMention' => 'ChatMembersFilter::Mention',
116
+ 'chatMembersFilterRestricted' => 'ChatMembersFilter::Restricted',
117
+ 'chatMembersFilterBanned' => 'ChatMembersFilter::Banned',
118
+ 'chatMembersFilterBots' => 'ChatMembersFilter::Bots',
119
+ 'SupergroupMembersFilter' => 'SupergroupMembersFilter',
120
+ 'supergroupMembersFilterRecent' => 'SupergroupMembersFilter::Recent',
121
+ 'supergroupMembersFilterContacts' => 'SupergroupMembersFilter::Contacts',
122
+ 'supergroupMembersFilterAdministrators' => 'SupergroupMembersFilter::Administrators',
123
+ 'supergroupMembersFilterSearch' => 'SupergroupMembersFilter::Search',
124
+ 'supergroupMembersFilterRestricted' => 'SupergroupMembersFilter::Restricted',
125
+ 'supergroupMembersFilterBanned' => 'SupergroupMembersFilter::Banned',
126
+ 'supergroupMembersFilterMention' => 'SupergroupMembersFilter::Mention',
127
+ 'supergroupMembersFilterBots' => 'SupergroupMembersFilter::Bots',
128
+ 'chatInviteLink' => 'ChatInviteLink',
129
+ 'chatInviteLinks' => 'ChatInviteLinks',
130
+ 'chatInviteLinkCount' => 'ChatInviteLinkCount',
131
+ 'chatInviteLinkCounts' => 'ChatInviteLinkCounts',
132
+ 'chatInviteLinkMember' => 'ChatInviteLinkMember',
133
+ 'chatInviteLinkMembers' => 'ChatInviteLinkMembers',
134
+ 'chatInviteLinkInfo' => 'ChatInviteLinkInfo',
135
+ 'basicGroup' => 'BasicGroup',
136
+ 'basicGroupFullInfo' => 'BasicGroupFullInfo',
137
+ 'supergroup' => 'Supergroup',
138
+ 'supergroupFullInfo' => 'SupergroupFullInfo',
139
+ 'SecretChatState' => 'SecretChatState',
140
+ 'secretChatStatePending' => 'SecretChatState::Pending',
141
+ 'secretChatStateReady' => 'SecretChatState::Ready',
142
+ 'secretChatStateClosed' => 'SecretChatState::Closed',
143
+ 'secretChat' => 'SecretChat',
144
+ 'MessageSender' => 'MessageSender',
145
+ 'messageSenderUser' => 'MessageSender::User',
146
+ 'messageSenderChat' => 'MessageSender::Chat',
147
+ 'messageSenders' => 'MessageSenders',
148
+ 'MessageForwardOrigin' => 'MessageForwardOrigin',
149
+ 'messageForwardOriginUser' => 'MessageForwardOrigin::User',
150
+ 'messageForwardOriginChat' => 'MessageForwardOrigin::Chat',
151
+ 'messageForwardOriginHiddenUser' => 'MessageForwardOrigin::HiddenUser',
152
+ 'messageForwardOriginChannel' => 'MessageForwardOrigin::Channel',
153
+ 'messageForwardOriginMessageImport' => 'MessageForwardOrigin::MessageImport',
154
+ 'messageForwardInfo' => 'MessageForwardInfo',
155
+ 'messageReplyInfo' => 'MessageReplyInfo',
156
+ 'messageInteractionInfo' => 'MessageInteractionInfo',
157
+ 'MessageSendingState' => 'MessageSendingState',
158
+ 'messageSendingStatePending' => 'MessageSendingState::Pending',
159
+ 'messageSendingStateFailed' => 'MessageSendingState::Failed',
160
+ 'message' => 'Message',
161
+ 'messages' => 'Messages',
162
+ 'foundMessages' => 'FoundMessages',
163
+ 'NotificationSettingsScope' => 'NotificationSettingsScope',
164
+ 'notificationSettingsScopePrivateChats' => 'NotificationSettingsScope::PrivateChats',
165
+ 'notificationSettingsScopeGroupChats' => 'NotificationSettingsScope::GroupChats',
166
+ 'notificationSettingsScopeChannelChats' => 'NotificationSettingsScope::ChannelChats',
167
+ 'chatNotificationSettings' => 'ChatNotificationSettings',
168
+ 'scopeNotificationSettings' => 'ScopeNotificationSettings',
169
+ 'draftMessage' => 'DraftMessage',
170
+ 'ChatType' => 'ChatType',
171
+ 'chatTypePrivate' => 'ChatType::Private',
172
+ 'chatTypeBasicGroup' => 'ChatType::BasicGroup',
173
+ 'chatTypeSupergroup' => 'ChatType::Supergroup',
174
+ 'chatTypeSecret' => 'ChatType::Secret',
175
+ 'chatFilter' => 'ChatFilter',
176
+ 'chatFilterInfo' => 'ChatFilterInfo',
177
+ 'recommendedChatFilter' => 'RecommendedChatFilter',
178
+ 'recommendedChatFilters' => 'RecommendedChatFilters',
179
+ 'ChatList' => 'ChatList',
180
+ 'chatListMain' => 'ChatList::Main',
181
+ 'chatListArchive' => 'ChatList::Archive',
182
+ 'chatListFilter' => 'ChatList::Filter',
183
+ 'chatLists' => 'ChatLists',
184
+ 'ChatSource' => 'ChatSource',
185
+ 'chatSourceMtprotoProxy' => 'ChatSource::MtprotoProxy',
186
+ 'chatSourcePublicServiceAnnouncement' => 'ChatSource::PublicServiceAnnouncement',
187
+ 'chatPosition' => 'ChatPosition',
188
+ 'voiceChat' => 'VoiceChat',
189
+ 'chat' => 'Chat',
190
+ 'chats' => 'Chats',
191
+ 'chatNearby' => 'ChatNearby',
192
+ 'chatsNearby' => 'ChatsNearby',
193
+ 'PublicChatType' => 'PublicChatType',
194
+ 'publicChatTypeHasUsername' => 'PublicChatType::HasUsername',
195
+ 'publicChatTypeIsLocationBased' => 'PublicChatType::IsLocationBased',
196
+ 'ChatActionBar' => 'ChatActionBar',
197
+ 'chatActionBarReportSpam' => 'ChatActionBar::ReportSpam',
198
+ 'chatActionBarReportUnrelatedLocation' => 'ChatActionBar::ReportUnrelatedLocation',
199
+ 'chatActionBarInviteMembers' => 'ChatActionBar::InviteMembers',
200
+ 'chatActionBarReportAddBlock' => 'ChatActionBar::ReportAddBlock',
201
+ 'chatActionBarAddContact' => 'ChatActionBar::AddContact',
202
+ 'chatActionBarSharePhoneNumber' => 'ChatActionBar::SharePhoneNumber',
203
+ 'KeyboardButtonType' => 'KeyboardButtonType',
204
+ 'keyboardButtonTypeText' => 'KeyboardButtonType::Text',
205
+ 'keyboardButtonTypeRequestPhoneNumber' => 'KeyboardButtonType::RequestPhoneNumber',
206
+ 'keyboardButtonTypeRequestLocation' => 'KeyboardButtonType::RequestLocation',
207
+ 'keyboardButtonTypeRequestPoll' => 'KeyboardButtonType::RequestPoll',
208
+ 'keyboardButton' => 'KeyboardButton',
209
+ 'InlineKeyboardButtonType' => 'InlineKeyboardButtonType',
210
+ 'inlineKeyboardButtonTypeUrl' => 'InlineKeyboardButtonType::Url',
211
+ 'inlineKeyboardButtonTypeLoginUrl' => 'InlineKeyboardButtonType::LoginUrl',
212
+ 'inlineKeyboardButtonTypeCallback' => 'InlineKeyboardButtonType::Callback',
213
+ 'inlineKeyboardButtonTypeCallbackWithPassword' => 'InlineKeyboardButtonType::CallbackWithPassword',
214
+ 'inlineKeyboardButtonTypeCallbackGame' => 'InlineKeyboardButtonType::CallbackGame',
215
+ 'inlineKeyboardButtonTypeSwitchInline' => 'InlineKeyboardButtonType::SwitchInline',
216
+ 'inlineKeyboardButtonTypeBuy' => 'InlineKeyboardButtonType::Buy',
217
+ 'inlineKeyboardButton' => 'InlineKeyboardButton',
218
+ 'ReplyMarkup' => 'ReplyMarkup',
219
+ 'replyMarkupRemoveKeyboard' => 'ReplyMarkup::RemoveKeyboard',
220
+ 'replyMarkupForceReply' => 'ReplyMarkup::ForceReply',
221
+ 'replyMarkupShowKeyboard' => 'ReplyMarkup::ShowKeyboard',
222
+ 'replyMarkupInlineKeyboard' => 'ReplyMarkup::InlineKeyboard',
223
+ 'LoginUrlInfo' => 'LoginUrlInfo',
224
+ 'loginUrlInfoOpen' => 'LoginUrlInfo::Open',
225
+ 'loginUrlInfoRequestConfirmation' => 'LoginUrlInfo::RequestConfirmation',
226
+ 'messageThreadInfo' => 'MessageThreadInfo',
227
+ 'RichText' => 'RichText',
228
+ 'richTextPlain' => 'RichText::Plain',
229
+ 'richTextBold' => 'RichText::Bold',
230
+ 'richTextItalic' => 'RichText::Italic',
231
+ 'richTextUnderline' => 'RichText::Underline',
232
+ 'richTextStrikethrough' => 'RichText::Strikethrough',
233
+ 'richTextFixed' => 'RichText::Fixed',
234
+ 'richTextUrl' => 'RichText::Url',
235
+ 'richTextEmailAddress' => 'RichText::EmailAddress',
236
+ 'richTextSubscript' => 'RichText::Subscript',
237
+ 'richTextSuperscript' => 'RichText::Superscript',
238
+ 'richTextMarked' => 'RichText::Marked',
239
+ 'richTextPhoneNumber' => 'RichText::PhoneNumber',
240
+ 'richTextIcon' => 'RichText::Icon',
241
+ 'richTextReference' => 'RichText::Reference',
242
+ 'richTextAnchor' => 'RichText::Anchor',
243
+ 'richTextAnchorLink' => 'RichText::AnchorLink',
244
+ 'richTexts' => 'RichText::s',
245
+ 'pageBlockCaption' => 'PageBlockCaption',
246
+ 'pageBlockListItem' => 'PageBlockListItem',
247
+ 'PageBlockHorizontalAlignment' => 'PageBlockHorizontalAlignment',
248
+ 'pageBlockHorizontalAlignmentLeft' => 'PageBlockHorizontalAlignment::Left',
249
+ 'pageBlockHorizontalAlignmentCenter' => 'PageBlockHorizontalAlignment::Center',
250
+ 'pageBlockHorizontalAlignmentRight' => 'PageBlockHorizontalAlignment::Right',
251
+ 'PageBlockVerticalAlignment' => 'PageBlockVerticalAlignment',
252
+ 'pageBlockVerticalAlignmentTop' => 'PageBlockVerticalAlignment::Top',
253
+ 'pageBlockVerticalAlignmentMiddle' => 'PageBlockVerticalAlignment::Middle',
254
+ 'pageBlockVerticalAlignmentBottom' => 'PageBlockVerticalAlignment::Bottom',
255
+ 'pageBlockTableCell' => 'PageBlockTableCell',
256
+ 'pageBlockRelatedArticle' => 'PageBlockRelatedArticle',
257
+ 'PageBlock' => 'PageBlock',
258
+ 'pageBlockTitle' => 'PageBlock::Title',
259
+ 'pageBlockSubtitle' => 'PageBlock::Subtitle',
260
+ 'pageBlockAuthorDate' => 'PageBlock::AuthorDate',
261
+ 'pageBlockHeader' => 'PageBlock::Header',
262
+ 'pageBlockSubheader' => 'PageBlock::Subheader',
263
+ 'pageBlockKicker' => 'PageBlock::Kicker',
264
+ 'pageBlockParagraph' => 'PageBlock::Paragraph',
265
+ 'pageBlockPreformatted' => 'PageBlock::Preformatted',
266
+ 'pageBlockFooter' => 'PageBlock::Footer',
267
+ 'pageBlockDivider' => 'PageBlock::Divider',
268
+ 'pageBlockAnchor' => 'PageBlock::Anchor',
269
+ 'pageBlockList' => 'PageBlock::List',
270
+ 'pageBlockBlockQuote' => 'PageBlock::BlockQuote',
271
+ 'pageBlockPullQuote' => 'PageBlock::PullQuote',
272
+ 'pageBlockAnimation' => 'PageBlock::Animation',
273
+ 'pageBlockAudio' => 'PageBlock::Audio',
274
+ 'pageBlockPhoto' => 'PageBlock::Photo',
275
+ 'pageBlockVideo' => 'PageBlock::Video',
276
+ 'pageBlockVoiceNote' => 'PageBlock::VoiceNote',
277
+ 'pageBlockCover' => 'PageBlock::Cover',
278
+ 'pageBlockEmbedded' => 'PageBlock::Embedded',
279
+ 'pageBlockEmbeddedPost' => 'PageBlock::EmbeddedPost',
280
+ 'pageBlockCollage' => 'PageBlock::Collage',
281
+ 'pageBlockSlideshow' => 'PageBlock::Slideshow',
282
+ 'pageBlockChatLink' => 'PageBlock::ChatLink',
283
+ 'pageBlockTable' => 'PageBlock::Table',
284
+ 'pageBlockDetails' => 'PageBlock::Details',
285
+ 'pageBlockRelatedArticles' => 'PageBlock::RelatedArticles',
286
+ 'pageBlockMap' => 'PageBlock::Map',
287
+ 'webPageInstantView' => 'WebPageInstantView',
288
+ 'webPage' => 'WebPage',
289
+ 'countryInfo' => 'CountryInfo',
290
+ 'countries' => 'Countries',
291
+ 'phoneNumberInfo' => 'PhoneNumberInfo',
292
+ 'bankCardActionOpenUrl' => 'BankCardActionOpenUrl',
293
+ 'bankCardInfo' => 'BankCardInfo',
294
+ 'address' => 'Address',
295
+ 'labeledPricePart' => 'LabeledPricePart',
296
+ 'invoice' => 'Invoice',
297
+ 'orderInfo' => 'OrderInfo',
298
+ 'shippingOption' => 'ShippingOption',
299
+ 'savedCredentials' => 'SavedCredentials',
300
+ 'InputCredentials' => 'InputCredentials',
301
+ 'inputCredentialsSaved' => 'InputCredentials::Saved',
302
+ 'inputCredentialsNew' => 'InputCredentials::New',
303
+ 'inputCredentialsApplePay' => 'InputCredentials::ApplePay',
304
+ 'inputCredentialsGooglePay' => 'InputCredentials::GooglePay',
305
+ 'paymentsProviderStripe' => 'PaymentsProviderStripe',
306
+ 'paymentFormTheme' => 'PaymentFormTheme',
307
+ 'paymentForm' => 'PaymentForm',
308
+ 'validatedOrderInfo' => 'ValidatedOrderInfo',
309
+ 'paymentResult' => 'PaymentResult',
310
+ 'paymentReceipt' => 'PaymentReceipt',
311
+ 'datedFile' => 'DatedFile',
312
+ 'PassportElementType' => 'PassportElementType',
313
+ 'passportElementTypePersonalDetails' => 'PassportElementType::PersonalDetails',
314
+ 'passportElementTypePassport' => 'PassportElementType::Passport',
315
+ 'passportElementTypeDriverLicense' => 'PassportElementType::DriverLicense',
316
+ 'passportElementTypeIdentityCard' => 'PassportElementType::IdentityCard',
317
+ 'passportElementTypeInternalPassport' => 'PassportElementType::InternalPassport',
318
+ 'passportElementTypeAddress' => 'PassportElementType::Address',
319
+ 'passportElementTypeUtilityBill' => 'PassportElementType::UtilityBill',
320
+ 'passportElementTypeBankStatement' => 'PassportElementType::BankStatement',
321
+ 'passportElementTypeRentalAgreement' => 'PassportElementType::RentalAgreement',
322
+ 'passportElementTypePassportRegistration' => 'PassportElementType::PassportRegistration',
323
+ 'passportElementTypeTemporaryRegistration' => 'PassportElementType::TemporaryRegistration',
324
+ 'passportElementTypePhoneNumber' => 'PassportElementType::PhoneNumber',
325
+ 'passportElementTypeEmailAddress' => 'PassportElementType::EmailAddress',
326
+ 'date' => 'Date',
327
+ 'personalDetails' => 'PersonalDetails',
328
+ 'identityDocument' => 'IdentityDocument',
329
+ 'inputIdentityDocument' => 'InputIdentityDocument',
330
+ 'personalDocument' => 'PersonalDocument',
331
+ 'inputPersonalDocument' => 'InputPersonalDocument',
332
+ 'PassportElement' => 'PassportElement',
333
+ 'passportElementPersonalDetails' => 'PassportElement::PersonalDetails',
334
+ 'passportElementPassport' => 'PassportElement::Passport',
335
+ 'passportElementDriverLicense' => 'PassportElement::DriverLicense',
336
+ 'passportElementIdentityCard' => 'PassportElement::IdentityCard',
337
+ 'passportElementInternalPassport' => 'PassportElement::InternalPassport',
338
+ 'passportElementAddress' => 'PassportElement::Address',
339
+ 'passportElementUtilityBill' => 'PassportElement::UtilityBill',
340
+ 'passportElementBankStatement' => 'PassportElement::BankStatement',
341
+ 'passportElementRentalAgreement' => 'PassportElement::RentalAgreement',
342
+ 'passportElementPassportRegistration' => 'PassportElement::PassportRegistration',
343
+ 'passportElementTemporaryRegistration' => 'PassportElement::TemporaryRegistration',
344
+ 'passportElementPhoneNumber' => 'PassportElement::PhoneNumber',
345
+ 'passportElementEmailAddress' => 'PassportElement::EmailAddress',
346
+ 'InputPassportElement' => 'InputPassportElement',
347
+ 'inputPassportElementPersonalDetails' => 'InputPassportElement::PersonalDetails',
348
+ 'inputPassportElementPassport' => 'InputPassportElement::Passport',
349
+ 'inputPassportElementDriverLicense' => 'InputPassportElement::DriverLicense',
350
+ 'inputPassportElementIdentityCard' => 'InputPassportElement::IdentityCard',
351
+ 'inputPassportElementInternalPassport' => 'InputPassportElement::InternalPassport',
352
+ 'inputPassportElementAddress' => 'InputPassportElement::Address',
353
+ 'inputPassportElementUtilityBill' => 'InputPassportElement::UtilityBill',
354
+ 'inputPassportElementBankStatement' => 'InputPassportElement::BankStatement',
355
+ 'inputPassportElementRentalAgreement' => 'InputPassportElement::RentalAgreement',
356
+ 'inputPassportElementPassportRegistration' => 'InputPassportElement::PassportRegistration',
357
+ 'inputPassportElementTemporaryRegistration' => 'InputPassportElement::TemporaryRegistration',
358
+ 'inputPassportElementPhoneNumber' => 'InputPassportElement::PhoneNumber',
359
+ 'inputPassportElementEmailAddress' => 'InputPassportElement::EmailAddress',
360
+ 'passportElements' => 'PassportElements',
361
+ 'PassportElementErrorSource' => 'PassportElementErrorSource',
362
+ 'passportElementErrorSourceUnspecified' => 'PassportElementErrorSource::Unspecified',
363
+ 'passportElementErrorSourceDataField' => 'PassportElementErrorSource::DataField',
364
+ 'passportElementErrorSourceFrontSide' => 'PassportElementErrorSource::FrontSide',
365
+ 'passportElementErrorSourceReverseSide' => 'PassportElementErrorSource::ReverseSide',
366
+ 'passportElementErrorSourceSelfie' => 'PassportElementErrorSource::Selfie',
367
+ 'passportElementErrorSourceTranslationFile' => 'PassportElementErrorSource::TranslationFile',
368
+ 'passportElementErrorSourceTranslationFiles' => 'PassportElementErrorSource::TranslationFiles',
369
+ 'passportElementErrorSourceFile' => 'PassportElementErrorSource::File',
370
+ 'passportElementErrorSourceFiles' => 'PassportElementErrorSource::Files',
371
+ 'passportElementError' => 'PassportElementError',
372
+ 'passportSuitableElement' => 'PassportSuitableElement',
373
+ 'passportRequiredElement' => 'PassportRequiredElement',
374
+ 'passportAuthorizationForm' => 'PassportAuthorizationForm',
375
+ 'passportElementsWithErrors' => 'PassportElementsWithErrors',
376
+ 'encryptedCredentials' => 'EncryptedCredentials',
377
+ 'encryptedPassportElement' => 'EncryptedPassportElement',
378
+ 'InputPassportElementErrorSource' => 'InputPassportElementErrorSource',
379
+ 'inputPassportElementErrorSourceUnspecified' => 'InputPassportElementErrorSource::Unspecified',
380
+ 'inputPassportElementErrorSourceDataField' => 'InputPassportElementErrorSource::DataField',
381
+ 'inputPassportElementErrorSourceFrontSide' => 'InputPassportElementErrorSource::FrontSide',
382
+ 'inputPassportElementErrorSourceReverseSide' => 'InputPassportElementErrorSource::ReverseSide',
383
+ 'inputPassportElementErrorSourceSelfie' => 'InputPassportElementErrorSource::Selfie',
384
+ 'inputPassportElementErrorSourceTranslationFile' => 'InputPassportElementErrorSource::TranslationFile',
385
+ 'inputPassportElementErrorSourceTranslationFiles' => 'InputPassportElementErrorSource::TranslationFiles',
386
+ 'inputPassportElementErrorSourceFile' => 'InputPassportElementErrorSource::File',
387
+ 'inputPassportElementErrorSourceFiles' => 'InputPassportElementErrorSource::Files',
388
+ 'inputPassportElementError' => 'InputPassportElementError',
389
+ 'MessageContent' => 'MessageContent',
390
+ 'messageText' => 'MessageContent::Text',
391
+ 'messageAnimation' => 'MessageContent::Animation',
392
+ 'messageAudio' => 'MessageContent::Audio',
393
+ 'messageDocument' => 'MessageContent::Document',
394
+ 'messagePhoto' => 'MessageContent::Photo',
395
+ 'messageExpiredPhoto' => 'MessageContent::ExpiredPhoto',
396
+ 'messageSticker' => 'MessageContent::Sticker',
397
+ 'messageVideo' => 'MessageContent::Video',
398
+ 'messageExpiredVideo' => 'MessageContent::ExpiredVideo',
399
+ 'messageVideoNote' => 'MessageContent::VideoNote',
400
+ 'messageVoiceNote' => 'MessageContent::VoiceNote',
401
+ 'messageLocation' => 'MessageContent::Location',
402
+ 'messageVenue' => 'MessageContent::Venue',
403
+ 'messageContact' => 'MessageContent::Contact',
404
+ 'messageDice' => 'MessageContent::Dice',
405
+ 'messageGame' => 'MessageContent::Game',
406
+ 'messagePoll' => 'MessageContent::Poll',
407
+ 'messageInvoice' => 'MessageContent::Invoice',
408
+ 'messageCall' => 'MessageContent::Call',
409
+ 'messageVoiceChatScheduled' => 'MessageContent::VoiceChatScheduled',
410
+ 'messageVoiceChatStarted' => 'MessageContent::VoiceChatStarted',
411
+ 'messageVoiceChatEnded' => 'MessageContent::VoiceChatEnded',
412
+ 'messageInviteVoiceChatParticipants' => 'MessageContent::InviteVoiceChatParticipants',
413
+ 'messageBasicGroupChatCreate' => 'MessageContent::BasicGroupChatCreate',
414
+ 'messageSupergroupChatCreate' => 'MessageContent::SupergroupChatCreate',
415
+ 'messageChatChangeTitle' => 'MessageContent::ChatChangeTitle',
416
+ 'messageChatChangePhoto' => 'MessageContent::ChatChangePhoto',
417
+ 'messageChatDeletePhoto' => 'MessageContent::ChatDeletePhoto',
418
+ 'messageChatAddMembers' => 'MessageContent::ChatAddMembers',
419
+ 'messageChatJoinByLink' => 'MessageContent::ChatJoinByLink',
420
+ 'messageChatDeleteMember' => 'MessageContent::ChatDeleteMember',
421
+ 'messageChatUpgradeTo' => 'MessageContent::ChatUpgradeTo',
422
+ 'messageChatUpgradeFrom' => 'MessageContent::ChatUpgradeFrom',
423
+ 'messagePinMessage' => 'MessageContent::PinMessage',
424
+ 'messageScreenshotTaken' => 'MessageContent::ScreenshotTaken',
425
+ 'messageChatSetTtl' => 'MessageContent::ChatSetTtl',
426
+ 'messageCustomServiceAction' => 'MessageContent::CustomServiceAction',
427
+ 'messageGameScore' => 'MessageContent::GameScore',
428
+ 'messagePaymentSuccessful' => 'MessageContent::PaymentSuccessful',
429
+ 'messagePaymentSuccessfulBot' => 'MessageContent::PaymentSuccessfulBot',
430
+ 'messageContactRegistered' => 'MessageContent::ContactRegistered',
431
+ 'messageWebsiteConnected' => 'MessageContent::WebsiteConnected',
432
+ 'messagePassportDataSent' => 'MessageContent::PassportDataSent',
433
+ 'messagePassportDataReceived' => 'MessageContent::PassportDataReceived',
434
+ 'messageProximityAlertTriggered' => 'MessageContent::ProximityAlertTriggered',
435
+ 'messageUnsupported' => 'MessageContent::Unsupported',
436
+ 'TextEntityType' => 'TextEntityType',
437
+ 'textEntityTypeMention' => 'TextEntityType::Mention',
438
+ 'textEntityTypeHashtag' => 'TextEntityType::Hashtag',
439
+ 'textEntityTypeCashtag' => 'TextEntityType::Cashtag',
440
+ 'textEntityTypeBotCommand' => 'TextEntityType::BotCommand',
441
+ 'textEntityTypeUrl' => 'TextEntityType::Url',
442
+ 'textEntityTypeEmailAddress' => 'TextEntityType::EmailAddress',
443
+ 'textEntityTypePhoneNumber' => 'TextEntityType::PhoneNumber',
444
+ 'textEntityTypeBankCardNumber' => 'TextEntityType::BankCardNumber',
445
+ 'textEntityTypeBold' => 'TextEntityType::Bold',
446
+ 'textEntityTypeItalic' => 'TextEntityType::Italic',
447
+ 'textEntityTypeUnderline' => 'TextEntityType::Underline',
448
+ 'textEntityTypeStrikethrough' => 'TextEntityType::Strikethrough',
449
+ 'textEntityTypeCode' => 'TextEntityType::Code',
450
+ 'textEntityTypePre' => 'TextEntityType::Pre',
451
+ 'textEntityTypePreCode' => 'TextEntityType::PreCode',
452
+ 'textEntityTypeTextUrl' => 'TextEntityType::TextUrl',
453
+ 'textEntityTypeMentionName' => 'TextEntityType::MentionName',
454
+ 'inputThumbnail' => 'InputThumbnail',
455
+ 'MessageSchedulingState' => 'MessageSchedulingState',
456
+ 'messageSchedulingStateSendAtDate' => 'MessageSchedulingState::SendAtDate',
457
+ 'messageSchedulingStateSendWhenOnline' => 'MessageSchedulingState::SendWhenOnline',
458
+ 'messageSendOptions' => 'MessageSendOptions',
459
+ 'messageCopyOptions' => 'MessageCopyOptions',
460
+ 'InputMessageContent' => 'InputMessageContent',
461
+ 'inputMessageText' => 'InputMessageContent::Text',
462
+ 'inputMessageAnimation' => 'InputMessageContent::Animation',
463
+ 'inputMessageAudio' => 'InputMessageContent::Audio',
464
+ 'inputMessageDocument' => 'InputMessageContent::Document',
465
+ 'inputMessagePhoto' => 'InputMessageContent::Photo',
466
+ 'inputMessageSticker' => 'InputMessageContent::Sticker',
467
+ 'inputMessageVideo' => 'InputMessageContent::Video',
468
+ 'inputMessageVideoNote' => 'InputMessageContent::VideoNote',
469
+ 'inputMessageVoiceNote' => 'InputMessageContent::VoiceNote',
470
+ 'inputMessageLocation' => 'InputMessageContent::Location',
471
+ 'inputMessageVenue' => 'InputMessageContent::Venue',
472
+ 'inputMessageContact' => 'InputMessageContent::Contact',
473
+ 'inputMessageDice' => 'InputMessageContent::Dice',
474
+ 'inputMessageGame' => 'InputMessageContent::Game',
475
+ 'inputMessageInvoice' => 'InputMessageContent::Invoice',
476
+ 'inputMessagePoll' => 'InputMessageContent::Poll',
477
+ 'inputMessageForwarded' => 'InputMessageContent::Forwarded',
478
+ 'SearchMessagesFilter' => 'SearchMessagesFilter',
479
+ 'searchMessagesFilterEmpty' => 'SearchMessagesFilter::Empty',
480
+ 'searchMessagesFilterAnimation' => 'SearchMessagesFilter::Animation',
481
+ 'searchMessagesFilterAudio' => 'SearchMessagesFilter::Audio',
482
+ 'searchMessagesFilterDocument' => 'SearchMessagesFilter::Document',
483
+ 'searchMessagesFilterPhoto' => 'SearchMessagesFilter::Photo',
484
+ 'searchMessagesFilterVideo' => 'SearchMessagesFilter::Video',
485
+ 'searchMessagesFilterVoiceNote' => 'SearchMessagesFilter::VoiceNote',
486
+ 'searchMessagesFilterPhotoAndVideo' => 'SearchMessagesFilter::PhotoAndVideo',
487
+ 'searchMessagesFilterUrl' => 'SearchMessagesFilter::Url',
488
+ 'searchMessagesFilterChatPhoto' => 'SearchMessagesFilter::ChatPhoto',
489
+ 'searchMessagesFilterCall' => 'SearchMessagesFilter::Call',
490
+ 'searchMessagesFilterMissedCall' => 'SearchMessagesFilter::MissedCall',
491
+ 'searchMessagesFilterVideoNote' => 'SearchMessagesFilter::VideoNote',
492
+ 'searchMessagesFilterVoiceAndVideoNote' => 'SearchMessagesFilter::VoiceAndVideoNote',
493
+ 'searchMessagesFilterMention' => 'SearchMessagesFilter::Mention',
494
+ 'searchMessagesFilterUnreadMention' => 'SearchMessagesFilter::UnreadMention',
495
+ 'searchMessagesFilterFailedToSend' => 'SearchMessagesFilter::FailedToSend',
496
+ 'searchMessagesFilterPinned' => 'SearchMessagesFilter::Pinned',
497
+ 'ChatAction' => 'ChatAction',
498
+ 'chatActionTyping' => 'ChatAction::Typing',
499
+ 'chatActionRecordingVideo' => 'ChatAction::RecordingVideo',
500
+ 'chatActionUploadingVideo' => 'ChatAction::UploadingVideo',
501
+ 'chatActionRecordingVoiceNote' => 'ChatAction::RecordingVoiceNote',
502
+ 'chatActionUploadingVoiceNote' => 'ChatAction::UploadingVoiceNote',
503
+ 'chatActionUploadingPhoto' => 'ChatAction::UploadingPhoto',
504
+ 'chatActionUploadingDocument' => 'ChatAction::UploadingDocument',
505
+ 'chatActionChoosingLocation' => 'ChatAction::ChoosingLocation',
506
+ 'chatActionChoosingContact' => 'ChatAction::ChoosingContact',
507
+ 'chatActionStartPlayingGame' => 'ChatAction::StartPlayingGame',
508
+ 'chatActionRecordingVideoNote' => 'ChatAction::RecordingVideoNote',
509
+ 'chatActionUploadingVideoNote' => 'ChatAction::UploadingVideoNote',
510
+ 'chatActionCancel' => 'ChatAction::Cancel',
511
+ 'UserStatus' => 'UserStatus',
512
+ 'userStatusEmpty' => 'UserStatus::Empty',
513
+ 'userStatusOnline' => 'UserStatus::Online',
514
+ 'userStatusOffline' => 'UserStatus::Offline',
515
+ 'userStatusRecently' => 'UserStatus::Recently',
516
+ 'userStatusLastWeek' => 'UserStatus::LastWeek',
517
+ 'userStatusLastMonth' => 'UserStatus::LastMonth',
518
+ 'stickers' => 'Stickers',
519
+ 'emojis' => 'Emojis',
520
+ 'stickerSet' => 'StickerSet',
521
+ 'stickerSetInfo' => 'StickerSetInfo',
522
+ 'stickerSets' => 'StickerSets',
523
+ 'CallDiscardReason' => 'CallDiscardReason',
524
+ 'callDiscardReasonEmpty' => 'CallDiscardReason::Empty',
525
+ 'callDiscardReasonMissed' => 'CallDiscardReason::Missed',
526
+ 'callDiscardReasonDeclined' => 'CallDiscardReason::Declined',
527
+ 'callDiscardReasonDisconnected' => 'CallDiscardReason::Disconnected',
528
+ 'callDiscardReasonHungUp' => 'CallDiscardReason::HungUp',
529
+ 'callProtocol' => 'CallProtocol',
530
+ 'CallServerType' => 'CallServerType',
531
+ 'callServerTypeTelegramReflector' => 'CallServerType::TelegramReflector',
532
+ 'callServerTypeWebrtc' => 'CallServerType::Webrtc',
533
+ 'callServer' => 'CallServer',
534
+ 'callId' => 'CallId',
535
+ 'groupCallId' => 'GroupCallId',
536
+ 'CallState' => 'CallState',
537
+ 'callStatePending' => 'CallState::Pending',
538
+ 'callStateExchangingKeys' => 'CallState::ExchangingKeys',
539
+ 'callStateReady' => 'CallState::Ready',
540
+ 'callStateHangingUp' => 'CallState::HangingUp',
541
+ 'callStateDiscarded' => 'CallState::Discarded',
542
+ 'callStateError' => 'CallState::Error',
543
+ 'groupCallRecentSpeaker' => 'GroupCallRecentSpeaker',
544
+ 'groupCall' => 'GroupCall',
545
+ 'groupCallPayloadFingerprint' => 'GroupCallPayloadFingerprint',
546
+ 'groupCallPayload' => 'GroupCallPayload',
547
+ 'groupCallJoinResponseCandidate' => 'GroupCallJoinResponseCandidate',
548
+ 'GroupCallJoinResponse' => 'GroupCallJoinResponse',
549
+ 'groupCallJoinResponseWebrtc' => 'GroupCallJoinResponse::Webrtc',
550
+ 'groupCallJoinResponseStream' => 'GroupCallJoinResponse::Stream',
551
+ 'groupCallParticipant' => 'GroupCallParticipant',
552
+ 'CallProblem' => 'CallProblem',
553
+ 'callProblemEcho' => 'CallProblem::Echo',
554
+ 'callProblemNoise' => 'CallProblem::Noise',
555
+ 'callProblemInterruptions' => 'CallProblem::Interruptions',
556
+ 'callProblemDistortedSpeech' => 'CallProblem::DistortedSpeech',
557
+ 'callProblemSilentLocal' => 'CallProblem::SilentLocal',
558
+ 'callProblemSilentRemote' => 'CallProblem::SilentRemote',
559
+ 'callProblemDropped' => 'CallProblem::Dropped',
560
+ 'callProblemDistortedVideo' => 'CallProblem::DistortedVideo',
561
+ 'callProblemPixelatedVideo' => 'CallProblem::PixelatedVideo',
562
+ 'call' => 'Call',
563
+ 'phoneNumberAuthenticationSettings' => 'PhoneNumberAuthenticationSettings',
564
+ 'animations' => 'Animations',
565
+ 'DiceStickers' => 'DiceStickers',
566
+ 'diceStickersRegular' => 'DiceStickers::Regular',
567
+ 'diceStickersSlotMachine' => 'DiceStickers::SlotMachine',
568
+ 'importedContacts' => 'ImportedContacts',
569
+ 'httpUrl' => 'HttpUrl',
570
+ 'InputInlineQueryResult' => 'InputInlineQueryResult',
571
+ 'inputInlineQueryResultAnimation' => 'InputInlineQueryResult::Animation',
572
+ 'inputInlineQueryResultArticle' => 'InputInlineQueryResult::Article',
573
+ 'inputInlineQueryResultAudio' => 'InputInlineQueryResult::Audio',
574
+ 'inputInlineQueryResultContact' => 'InputInlineQueryResult::Contact',
575
+ 'inputInlineQueryResultDocument' => 'InputInlineQueryResult::Document',
576
+ 'inputInlineQueryResultGame' => 'InputInlineQueryResult::Game',
577
+ 'inputInlineQueryResultLocation' => 'InputInlineQueryResult::Location',
578
+ 'inputInlineQueryResultPhoto' => 'InputInlineQueryResult::Photo',
579
+ 'inputInlineQueryResultSticker' => 'InputInlineQueryResult::Sticker',
580
+ 'inputInlineQueryResultVenue' => 'InputInlineQueryResult::Venue',
581
+ 'inputInlineQueryResultVideo' => 'InputInlineQueryResult::Video',
582
+ 'inputInlineQueryResultVoiceNote' => 'InputInlineQueryResult::VoiceNote',
583
+ 'InlineQueryResult' => 'InlineQueryResult',
584
+ 'inlineQueryResultArticle' => 'InlineQueryResult::Article',
585
+ 'inlineQueryResultContact' => 'InlineQueryResult::Contact',
586
+ 'inlineQueryResultLocation' => 'InlineQueryResult::Location',
587
+ 'inlineQueryResultVenue' => 'InlineQueryResult::Venue',
588
+ 'inlineQueryResultGame' => 'InlineQueryResult::Game',
589
+ 'inlineQueryResultAnimation' => 'InlineQueryResult::Animation',
590
+ 'inlineQueryResultAudio' => 'InlineQueryResult::Audio',
591
+ 'inlineQueryResultDocument' => 'InlineQueryResult::Document',
592
+ 'inlineQueryResultPhoto' => 'InlineQueryResult::Photo',
593
+ 'inlineQueryResultSticker' => 'InlineQueryResult::Sticker',
594
+ 'inlineQueryResultVideo' => 'InlineQueryResult::Video',
595
+ 'inlineQueryResultVoiceNote' => 'InlineQueryResult::VoiceNote',
596
+ 'inlineQueryResults' => 'InlineQueryResults',
597
+ 'CallbackQueryPayload' => 'CallbackQueryPayload',
598
+ 'callbackQueryPayloadData' => 'CallbackQueryPayload::Data',
599
+ 'callbackQueryPayloadDataWithPassword' => 'CallbackQueryPayload::DataWithPassword',
600
+ 'callbackQueryPayloadGame' => 'CallbackQueryPayload::Game',
601
+ 'callbackQueryAnswer' => 'CallbackQueryAnswer',
602
+ 'customRequestResult' => 'CustomRequestResult',
603
+ 'gameHighScore' => 'GameHighScore',
604
+ 'gameHighScores' => 'GameHighScores',
605
+ 'ChatEventAction' => 'ChatEventAction',
606
+ 'chatEventMessageEdited' => 'ChatEventAction::MessageEdited',
607
+ 'chatEventMessageDeleted' => 'ChatEventAction::MessageDeleted',
608
+ 'chatEventPollStopped' => 'ChatEventAction::PollStopped',
609
+ 'chatEventMessagePinned' => 'ChatEventAction::MessagePinned',
610
+ 'chatEventMessageUnpinned' => 'ChatEventAction::MessageUnpinned',
611
+ 'chatEventMemberJoined' => 'ChatEventAction::MemberJoined',
612
+ 'chatEventMemberJoinedByInviteLink' => 'ChatEventAction::MemberJoinedByInviteLink',
613
+ 'chatEventMemberLeft' => 'ChatEventAction::MemberLeft',
614
+ 'chatEventMemberInvited' => 'ChatEventAction::MemberInvited',
615
+ 'chatEventMemberPromoted' => 'ChatEventAction::MemberPromoted',
616
+ 'chatEventMemberRestricted' => 'ChatEventAction::MemberRestricted',
617
+ 'chatEventTitleChanged' => 'ChatEventAction::TitleChanged',
618
+ 'chatEventPermissionsChanged' => 'ChatEventAction::PermissionsChanged',
619
+ 'chatEventDescriptionChanged' => 'ChatEventAction::DescriptionChanged',
620
+ 'chatEventUsernameChanged' => 'ChatEventAction::UsernameChanged',
621
+ 'chatEventPhotoChanged' => 'ChatEventAction::PhotoChanged',
622
+ 'chatEventInvitesToggled' => 'ChatEventAction::InvitesToggled',
623
+ 'chatEventLinkedChatChanged' => 'ChatEventAction::LinkedChatChanged',
624
+ 'chatEventSlowModeDelayChanged' => 'ChatEventAction::SlowModeDelayChanged',
625
+ 'chatEventMessageTtlSettingChanged' => 'ChatEventAction::MessageTtlSettingChanged',
626
+ 'chatEventSignMessagesToggled' => 'ChatEventAction::SignMessagesToggled',
627
+ 'chatEventStickerSetChanged' => 'ChatEventAction::StickerSetChanged',
628
+ 'chatEventLocationChanged' => 'ChatEventAction::LocationChanged',
629
+ 'chatEventIsAllHistoryAvailableToggled' => 'ChatEventAction::IsAllHistoryAvailableToggled',
630
+ 'chatEventInviteLinkEdited' => 'ChatEventAction::InviteLinkEdited',
631
+ 'chatEventInviteLinkRevoked' => 'ChatEventAction::InviteLinkRevoked',
632
+ 'chatEventInviteLinkDeleted' => 'ChatEventAction::InviteLinkDeleted',
633
+ 'chatEventVoiceChatCreated' => 'ChatEventAction::VoiceChatCreated',
634
+ 'chatEventVoiceChatDiscarded' => 'ChatEventAction::VoiceChatDiscarded',
635
+ 'chatEventVoiceChatParticipantIsMutedToggled' => 'ChatEventAction::VoiceChatParticipantIsMutedToggled',
636
+ 'chatEventVoiceChatParticipantVolumeLevelChanged' => 'ChatEventAction::VoiceChatParticipantVolumeLevelChanged',
637
+ 'chatEventVoiceChatMuteNewParticipantsToggled' => 'ChatEventAction::VoiceChatMuteNewParticipantsToggled',
638
+ 'chatEvent' => 'ChatEvent',
639
+ 'chatEvents' => 'ChatEvents',
640
+ 'chatEventLogFilters' => 'ChatEventLogFilters',
641
+ 'LanguagePackStringValue' => 'LanguagePackStringValue',
642
+ 'languagePackStringValueOrdinary' => 'LanguagePackStringValue::Ordinary',
643
+ 'languagePackStringValuePluralized' => 'LanguagePackStringValue::Pluralized',
644
+ 'languagePackStringValueDeleted' => 'LanguagePackStringValue::Deleted',
645
+ 'languagePackString' => 'LanguagePackString',
646
+ 'languagePackStrings' => 'LanguagePackStrings',
647
+ 'languagePackInfo' => 'LanguagePackInfo',
648
+ 'localizationTargetInfo' => 'LocalizationTargetInfo',
649
+ 'DeviceToken' => 'DeviceToken',
650
+ 'deviceTokenFirebaseCloudMessaging' => 'DeviceToken::FirebaseCloudMessaging',
651
+ 'deviceTokenApplePush' => 'DeviceToken::ApplePush',
652
+ 'deviceTokenApplePushVoIP' => 'DeviceToken::ApplePushVoIP',
653
+ 'deviceTokenWindowsPush' => 'DeviceToken::WindowsPush',
654
+ 'deviceTokenMicrosoftPush' => 'DeviceToken::MicrosoftPush',
655
+ 'deviceTokenMicrosoftPushVoIP' => 'DeviceToken::MicrosoftPushVoIP',
656
+ 'deviceTokenWebPush' => 'DeviceToken::WebPush',
657
+ 'deviceTokenSimplePush' => 'DeviceToken::SimplePush',
658
+ 'deviceTokenUbuntuPush' => 'DeviceToken::UbuntuPush',
659
+ 'deviceTokenBlackBerryPush' => 'DeviceToken::BlackBerryPush',
660
+ 'deviceTokenTizenPush' => 'DeviceToken::TizenPush',
661
+ 'pushReceiverId' => 'PushReceiverId',
662
+ 'BackgroundFill' => 'BackgroundFill',
663
+ 'backgroundFillSolid' => 'BackgroundFill::Solid',
664
+ 'backgroundFillGradient' => 'BackgroundFill::Gradient',
665
+ 'BackgroundType' => 'BackgroundType',
666
+ 'backgroundTypeWallpaper' => 'BackgroundType::Wallpaper',
667
+ 'backgroundTypePattern' => 'BackgroundType::Pattern',
668
+ 'backgroundTypeFill' => 'BackgroundType::Fill',
669
+ 'background' => 'Background',
670
+ 'backgrounds' => 'Backgrounds',
671
+ 'InputBackground' => 'InputBackground',
672
+ 'inputBackgroundLocal' => 'InputBackground::Local',
673
+ 'inputBackgroundRemote' => 'InputBackground::Remote',
674
+ 'hashtags' => 'Hashtags',
675
+ 'CanTransferOwnershipResult' => 'CanTransferOwnershipResult',
676
+ 'canTransferOwnershipResultOk' => 'CanTransferOwnershipResult::Ok',
677
+ 'canTransferOwnershipResultPasswordNeeded' => 'CanTransferOwnershipResult::PasswordNeeded',
678
+ 'canTransferOwnershipResultPasswordTooFresh' => 'CanTransferOwnershipResult::PasswordTooFresh',
679
+ 'canTransferOwnershipResultSessionTooFresh' => 'CanTransferOwnershipResult::SessionTooFresh',
680
+ 'CheckChatUsernameResult' => 'CheckChatUsernameResult',
681
+ 'checkChatUsernameResultOk' => 'CheckChatUsernameResult::Ok',
682
+ 'checkChatUsernameResultUsernameInvalid' => 'CheckChatUsernameResult::UsernameInvalid',
683
+ 'checkChatUsernameResultUsernameOccupied' => 'CheckChatUsernameResult::UsernameOccupied',
684
+ 'checkChatUsernameResultPublicChatsTooMuch' => 'CheckChatUsernameResult::PublicChatsTooMuch',
685
+ 'checkChatUsernameResultPublicGroupsUnavailable' => 'CheckChatUsernameResult::PublicGroupsUnavailable',
686
+ 'MessageFileType' => 'MessageFileType',
687
+ 'messageFileTypePrivate' => 'MessageFileType::Private',
688
+ 'messageFileTypeGroup' => 'MessageFileType::Group',
689
+ 'messageFileTypeUnknown' => 'MessageFileType::Unknown',
690
+ 'PushMessageContent' => 'PushMessageContent',
691
+ 'pushMessageContentHidden' => 'PushMessageContent::Hidden',
692
+ 'pushMessageContentAnimation' => 'PushMessageContent::Animation',
693
+ 'pushMessageContentAudio' => 'PushMessageContent::Audio',
694
+ 'pushMessageContentContact' => 'PushMessageContent::Contact',
695
+ 'pushMessageContentContactRegistered' => 'PushMessageContent::ContactRegistered',
696
+ 'pushMessageContentDocument' => 'PushMessageContent::Document',
697
+ 'pushMessageContentGame' => 'PushMessageContent::Game',
698
+ 'pushMessageContentGameScore' => 'PushMessageContent::GameScore',
699
+ 'pushMessageContentInvoice' => 'PushMessageContent::Invoice',
700
+ 'pushMessageContentLocation' => 'PushMessageContent::Location',
701
+ 'pushMessageContentPhoto' => 'PushMessageContent::Photo',
702
+ 'pushMessageContentPoll' => 'PushMessageContent::Poll',
703
+ 'pushMessageContentScreenshotTaken' => 'PushMessageContent::ScreenshotTaken',
704
+ 'pushMessageContentSticker' => 'PushMessageContent::Sticker',
705
+ 'pushMessageContentText' => 'PushMessageContent::Text',
706
+ 'pushMessageContentVideo' => 'PushMessageContent::Video',
707
+ 'pushMessageContentVideoNote' => 'PushMessageContent::VideoNote',
708
+ 'pushMessageContentVoiceNote' => 'PushMessageContent::VoiceNote',
709
+ 'pushMessageContentBasicGroupChatCreate' => 'PushMessageContent::BasicGroupChatCreate',
710
+ 'pushMessageContentChatAddMembers' => 'PushMessageContent::ChatAddMembers',
711
+ 'pushMessageContentChatChangePhoto' => 'PushMessageContent::ChatChangePhoto',
712
+ 'pushMessageContentChatChangeTitle' => 'PushMessageContent::ChatChangeTitle',
713
+ 'pushMessageContentChatDeleteMember' => 'PushMessageContent::ChatDeleteMember',
714
+ 'pushMessageContentChatJoinByLink' => 'PushMessageContent::ChatJoinByLink',
715
+ 'pushMessageContentMessageForwards' => 'PushMessageContent::MessageForwards',
716
+ 'pushMessageContentMediaAlbum' => 'PushMessageContent::MediaAlbum',
717
+ 'NotificationType' => 'NotificationType',
718
+ 'notificationTypeNewMessage' => 'NotificationType::NewMessage',
719
+ 'notificationTypeNewSecretChat' => 'NotificationType::NewSecretChat',
720
+ 'notificationTypeNewCall' => 'NotificationType::NewCall',
721
+ 'notificationTypeNewPushMessage' => 'NotificationType::NewPushMessage',
722
+ 'NotificationGroupType' => 'NotificationGroupType',
723
+ 'notificationGroupTypeMessages' => 'NotificationGroupType::Messages',
724
+ 'notificationGroupTypeMentions' => 'NotificationGroupType::Mentions',
725
+ 'notificationGroupTypeSecretChat' => 'NotificationGroupType::SecretChat',
726
+ 'notificationGroupTypeCalls' => 'NotificationGroupType::Calls',
727
+ 'notification' => 'Notification',
728
+ 'notificationGroup' => 'NotificationGroup',
729
+ 'OptionValue' => 'OptionValue',
730
+ 'optionValueBoolean' => 'OptionValue::Boolean',
731
+ 'optionValueEmpty' => 'OptionValue::Empty',
732
+ 'optionValueInteger' => 'OptionValue::Integer',
733
+ 'optionValueString' => 'OptionValue::String',
734
+ 'jsonObjectMember' => 'JsonObjectMember',
735
+ 'JsonValue' => 'JsonValue',
736
+ 'jsonValueNull' => 'JsonValue::Null',
737
+ 'jsonValueBoolean' => 'JsonValue::Boolean',
738
+ 'jsonValueNumber' => 'JsonValue::Number',
739
+ 'jsonValueString' => 'JsonValue::String',
740
+ 'jsonValueArray' => 'JsonValue::Array',
741
+ 'jsonValueObject' => 'JsonValue::Object',
742
+ 'UserPrivacySettingRule' => 'UserPrivacySettingRule',
743
+ 'userPrivacySettingRuleAllowAll' => 'UserPrivacySettingRule::AllowAll',
744
+ 'userPrivacySettingRuleAllowContacts' => 'UserPrivacySettingRule::AllowContacts',
745
+ 'userPrivacySettingRuleAllowUsers' => 'UserPrivacySettingRule::AllowUsers',
746
+ 'userPrivacySettingRuleAllowChatMembers' => 'UserPrivacySettingRule::AllowChatMembers',
747
+ 'userPrivacySettingRuleRestrictAll' => 'UserPrivacySettingRule::RestrictAll',
748
+ 'userPrivacySettingRuleRestrictContacts' => 'UserPrivacySettingRule::RestrictContacts',
749
+ 'userPrivacySettingRuleRestrictUsers' => 'UserPrivacySettingRule::RestrictUsers',
750
+ 'userPrivacySettingRuleRestrictChatMembers' => 'UserPrivacySettingRule::RestrictChatMembers',
751
+ 'userPrivacySettingRules' => 'UserPrivacySettingRules',
752
+ 'UserPrivacySetting' => 'UserPrivacySetting',
753
+ 'userPrivacySettingShowStatus' => 'UserPrivacySetting::ShowStatus',
754
+ 'userPrivacySettingShowProfilePhoto' => 'UserPrivacySetting::ShowProfilePhoto',
755
+ 'userPrivacySettingShowLinkInForwardedMessages' => 'UserPrivacySetting::ShowLinkInForwardedMessages',
756
+ 'userPrivacySettingShowPhoneNumber' => 'UserPrivacySetting::ShowPhoneNumber',
757
+ 'userPrivacySettingAllowChatInvites' => 'UserPrivacySetting::AllowChatInvites',
758
+ 'userPrivacySettingAllowCalls' => 'UserPrivacySetting::AllowCalls',
759
+ 'userPrivacySettingAllowPeerToPeerCalls' => 'UserPrivacySetting::AllowPeerToPeerCalls',
760
+ 'userPrivacySettingAllowFindingByPhoneNumber' => 'UserPrivacySetting::AllowFindingByPhoneNumber',
761
+ 'accountTtl' => 'AccountTtl',
762
+ 'session' => 'Session',
763
+ 'sessions' => 'Sessions',
764
+ 'connectedWebsite' => 'ConnectedWebsite',
765
+ 'connectedWebsites' => 'ConnectedWebsites',
766
+ 'ChatReportReason' => 'ChatReportReason',
767
+ 'chatReportReasonSpam' => 'ChatReportReason::Spam',
768
+ 'chatReportReasonViolence' => 'ChatReportReason::Violence',
769
+ 'chatReportReasonPornography' => 'ChatReportReason::Pornography',
770
+ 'chatReportReasonChildAbuse' => 'ChatReportReason::ChildAbuse',
771
+ 'chatReportReasonCopyright' => 'ChatReportReason::Copyright',
772
+ 'chatReportReasonUnrelatedLocation' => 'ChatReportReason::UnrelatedLocation',
773
+ 'chatReportReasonFake' => 'ChatReportReason::Fake',
774
+ 'chatReportReasonCustom' => 'ChatReportReason::Custom',
775
+ 'messageLink' => 'MessageLink',
776
+ 'messageLinkInfo' => 'MessageLinkInfo',
777
+ 'filePart' => 'FilePart',
778
+ 'FileType' => 'FileType',
779
+ 'fileTypeNone' => 'FileType::None',
780
+ 'fileTypeAnimation' => 'FileType::Animation',
781
+ 'fileTypeAudio' => 'FileType::Audio',
782
+ 'fileTypeDocument' => 'FileType::Document',
783
+ 'fileTypePhoto' => 'FileType::Photo',
784
+ 'fileTypeProfilePhoto' => 'FileType::ProfilePhoto',
785
+ 'fileTypeSecret' => 'FileType::Secret',
786
+ 'fileTypeSecretThumbnail' => 'FileType::SecretThumbnail',
787
+ 'fileTypeSecure' => 'FileType::Secure',
788
+ 'fileTypeSticker' => 'FileType::Sticker',
789
+ 'fileTypeThumbnail' => 'FileType::Thumbnail',
790
+ 'fileTypeUnknown' => 'FileType::Unknown',
791
+ 'fileTypeVideo' => 'FileType::Video',
792
+ 'fileTypeVideoNote' => 'FileType::VideoNote',
793
+ 'fileTypeVoiceNote' => 'FileType::VoiceNote',
794
+ 'fileTypeWallpaper' => 'FileType::Wallpaper',
795
+ 'storageStatisticsByFileType' => 'StorageStatisticsByFileType',
796
+ 'storageStatisticsByChat' => 'StorageStatisticsByChat',
797
+ 'storageStatistics' => 'StorageStatistics',
798
+ 'storageStatisticsFast' => 'StorageStatisticsFast',
799
+ 'databaseStatistics' => 'DatabaseStatistics',
800
+ 'NetworkType' => 'NetworkType',
801
+ 'networkTypeNone' => 'NetworkType::None',
802
+ 'networkTypeMobile' => 'NetworkType::Mobile',
803
+ 'networkTypeMobileRoaming' => 'NetworkType::MobileRoaming',
804
+ 'networkTypeWiFi' => 'NetworkType::WiFi',
805
+ 'networkTypeOther' => 'NetworkType::Other',
806
+ 'NetworkStatisticsEntry' => 'NetworkStatisticsEntry',
807
+ 'networkStatisticsEntryFile' => 'NetworkStatisticsEntry::File',
808
+ 'networkStatisticsEntryCall' => 'NetworkStatisticsEntry::Call',
809
+ 'networkStatistics' => 'NetworkStatistics',
810
+ 'autoDownloadSettings' => 'AutoDownloadSettings',
811
+ 'autoDownloadSettingsPresets' => 'AutoDownloadSettingsPresets',
812
+ 'ConnectionState' => 'ConnectionState',
813
+ 'connectionStateWaitingForNetwork' => 'ConnectionState::WaitingForNetwork',
814
+ 'connectionStateConnectingToProxy' => 'ConnectionState::ConnectingToProxy',
815
+ 'connectionStateConnecting' => 'ConnectionState::Connecting',
816
+ 'connectionStateUpdating' => 'ConnectionState::Updating',
817
+ 'connectionStateReady' => 'ConnectionState::Ready',
818
+ 'TopChatCategory' => 'TopChatCategory',
819
+ 'topChatCategoryUsers' => 'TopChatCategory::Users',
820
+ 'topChatCategoryBots' => 'TopChatCategory::Bots',
821
+ 'topChatCategoryGroups' => 'TopChatCategory::Groups',
822
+ 'topChatCategoryChannels' => 'TopChatCategory::Channels',
823
+ 'topChatCategoryInlineBots' => 'TopChatCategory::InlineBots',
824
+ 'topChatCategoryCalls' => 'TopChatCategory::Calls',
825
+ 'topChatCategoryForwardChats' => 'TopChatCategory::ForwardChats',
826
+ 'TMeUrlType' => 'TMeUrlType',
827
+ 'tMeUrlTypeUser' => 'TMeUrlType::User',
828
+ 'tMeUrlTypeSupergroup' => 'TMeUrlType::Supergroup',
829
+ 'tMeUrlTypeChatInvite' => 'TMeUrlType::ChatInvite',
830
+ 'tMeUrlTypeStickerSet' => 'TMeUrlType::StickerSet',
831
+ 'tMeUrl' => 'TMeUrl',
832
+ 'tMeUrls' => 'TMeUrls',
833
+ 'SuggestedAction' => 'SuggestedAction',
834
+ 'suggestedActionEnableArchiveAndMuteNewChats' => 'SuggestedAction::EnableArchiveAndMuteNewChats',
835
+ 'suggestedActionCheckPhoneNumber' => 'SuggestedAction::CheckPhoneNumber',
836
+ 'suggestedActionSeeTicksHint' => 'SuggestedAction::SeeTicksHint',
837
+ 'suggestedActionConvertToBroadcastGroup' => 'SuggestedAction::ConvertToBroadcastGroup',
838
+ 'count' => 'Count',
839
+ 'text' => 'Text',
840
+ 'seconds' => 'Seconds',
841
+ 'deepLinkInfo' => 'DeepLinkInfo',
842
+ 'TextParseMode' => 'TextParseMode',
843
+ 'textParseModeMarkdown' => 'TextParseMode::Markdown',
844
+ 'textParseModeHTML' => 'TextParseMode::HTML',
845
+ 'ProxyType' => 'ProxyType',
846
+ 'proxyTypeSocks5' => 'ProxyType::Socks5',
847
+ 'proxyTypeHttp' => 'ProxyType::Http',
848
+ 'proxyTypeMtproto' => 'ProxyType::Mtproto',
849
+ 'proxy' => 'Proxy',
850
+ 'proxies' => 'Proxies',
851
+ 'InputSticker' => 'InputSticker',
852
+ 'inputStickerStatic' => 'InputSticker::Static',
853
+ 'inputStickerAnimated' => 'InputSticker::Animated',
854
+ 'dateRange' => 'DateRange',
855
+ 'statisticalValue' => 'StatisticalValue',
856
+ 'StatisticalGraph' => 'StatisticalGraph',
857
+ 'statisticalGraphData' => 'StatisticalGraph::Data',
858
+ 'statisticalGraphAsync' => 'StatisticalGraph::Async',
859
+ 'statisticalGraphError' => 'StatisticalGraph::Error',
860
+ 'chatStatisticsMessageInteractionInfo' => 'ChatStatisticsMessageInteractionInfo',
861
+ 'chatStatisticsMessageSenderInfo' => 'ChatStatisticsMessageSenderInfo',
862
+ 'chatStatisticsAdministratorActionsInfo' => 'ChatStatisticsAdministratorActionsInfo',
863
+ 'chatStatisticsInviterInfo' => 'ChatStatisticsInviterInfo',
864
+ 'ChatStatistics' => 'ChatStatistics',
865
+ 'chatStatisticsSupergroup' => 'ChatStatistics::Supergroup',
866
+ 'chatStatisticsChannel' => 'ChatStatistics::Channel',
867
+ 'messageStatistics' => 'MessageStatistics',
868
+ 'point' => 'Point',
869
+ 'VectorPathCommand' => 'VectorPathCommand',
870
+ 'vectorPathCommandLine' => 'VectorPathCommand::Line',
871
+ 'vectorPathCommandCubicBezierCurve' => 'VectorPathCommand::CubicBezierCurve',
872
+ 'Update' => 'Update',
873
+ 'updateAuthorizationState' => 'Update::AuthorizationState',
874
+ 'updateNewMessage' => 'Update::NewMessage',
875
+ 'updateMessageSendAcknowledged' => 'Update::MessageSendAcknowledged',
876
+ 'updateMessageSendSucceeded' => 'Update::MessageSendSucceeded',
877
+ 'updateMessageSendFailed' => 'Update::MessageSendFailed',
878
+ 'updateMessageContent' => 'Update::MessageContent',
879
+ 'updateMessageEdited' => 'Update::MessageEdited',
880
+ 'updateMessageIsPinned' => 'Update::MessageIsPinned',
881
+ 'updateMessageInteractionInfo' => 'Update::MessageInteractionInfo',
882
+ 'updateMessageContentOpened' => 'Update::MessageContentOpened',
883
+ 'updateMessageMentionRead' => 'Update::MessageMentionRead',
884
+ 'updateMessageLiveLocationViewed' => 'Update::MessageLiveLocationViewed',
885
+ 'updateNewChat' => 'Update::NewChat',
886
+ 'updateChatTitle' => 'Update::ChatTitle',
887
+ 'updateChatPhoto' => 'Update::ChatPhoto',
888
+ 'updateChatPermissions' => 'Update::ChatPermissions',
889
+ 'updateChatLastMessage' => 'Update::ChatLastMessage',
890
+ 'updateChatPosition' => 'Update::ChatPosition',
891
+ 'updateChatIsMarkedAsUnread' => 'Update::ChatIsMarkedAsUnread',
892
+ 'updateChatIsBlocked' => 'Update::ChatIsBlocked',
893
+ 'updateChatHasScheduledMessages' => 'Update::ChatHasScheduledMessages',
894
+ 'updateChatVoiceChat' => 'Update::ChatVoiceChat',
895
+ 'updateChatDefaultDisableNotification' => 'Update::ChatDefaultDisableNotification',
896
+ 'updateChatReadInbox' => 'Update::ChatReadInbox',
897
+ 'updateChatReadOutbox' => 'Update::ChatReadOutbox',
898
+ 'updateChatUnreadMentionCount' => 'Update::ChatUnreadMentionCount',
899
+ 'updateChatNotificationSettings' => 'Update::ChatNotificationSettings',
900
+ 'updateScopeNotificationSettings' => 'Update::ScopeNotificationSettings',
901
+ 'updateChatMessageTtlSetting' => 'Update::ChatMessageTtlSetting',
902
+ 'updateChatActionBar' => 'Update::ChatActionBar',
903
+ 'updateChatReplyMarkup' => 'Update::ChatReplyMarkup',
904
+ 'updateChatDraftMessage' => 'Update::ChatDraftMessage',
905
+ 'updateChatFilters' => 'Update::ChatFilters',
906
+ 'updateChatOnlineMemberCount' => 'Update::ChatOnlineMemberCount',
907
+ 'updateNotification' => 'Update::Notification',
908
+ 'updateNotificationGroup' => 'Update::NotificationGroup',
909
+ 'updateActiveNotifications' => 'Update::ActiveNotifications',
910
+ 'updateHavePendingNotifications' => 'Update::HavePendingNotifications',
911
+ 'updateDeleteMessages' => 'Update::DeleteMessages',
912
+ 'updateUserChatAction' => 'Update::UserChatAction',
913
+ 'updateUserStatus' => 'Update::UserStatus',
914
+ 'updateUser' => 'Update::User',
915
+ 'updateBasicGroup' => 'Update::BasicGroup',
916
+ 'updateSupergroup' => 'Update::Supergroup',
917
+ 'updateSecretChat' => 'Update::SecretChat',
918
+ 'updateUserFullInfo' => 'Update::UserFullInfo',
919
+ 'updateBasicGroupFullInfo' => 'Update::BasicGroupFullInfo',
920
+ 'updateSupergroupFullInfo' => 'Update::SupergroupFullInfo',
921
+ 'updateServiceNotification' => 'Update::ServiceNotification',
922
+ 'updateFile' => 'Update::File',
923
+ 'updateFileGenerationStart' => 'Update::FileGenerationStart',
924
+ 'updateFileGenerationStop' => 'Update::FileGenerationStop',
925
+ 'updateCall' => 'Update::Call',
926
+ 'updateGroupCall' => 'Update::GroupCall',
927
+ 'updateGroupCallParticipant' => 'Update::GroupCallParticipant',
928
+ 'updateNewCallSignalingData' => 'Update::NewCallSignalingData',
929
+ 'updateUserPrivacySettingRules' => 'Update::UserPrivacySettingRules',
930
+ 'updateUnreadMessageCount' => 'Update::UnreadMessageCount',
931
+ 'updateUnreadChatCount' => 'Update::UnreadChatCount',
932
+ 'updateOption' => 'Update::Option',
933
+ 'updateStickerSet' => 'Update::StickerSet',
934
+ 'updateInstalledStickerSets' => 'Update::InstalledStickerSets',
935
+ 'updateTrendingStickerSets' => 'Update::TrendingStickerSets',
936
+ 'updateRecentStickers' => 'Update::RecentStickers',
937
+ 'updateFavoriteStickers' => 'Update::FavoriteStickers',
938
+ 'updateSavedAnimations' => 'Update::SavedAnimations',
939
+ 'updateSelectedBackground' => 'Update::SelectedBackground',
940
+ 'updateLanguagePackStrings' => 'Update::LanguagePackStrings',
941
+ 'updateConnectionState' => 'Update::ConnectionState',
942
+ 'updateTermsOfService' => 'Update::TermsOfService',
943
+ 'updateUsersNearby' => 'Update::UsersNearby',
944
+ 'updateDiceEmojis' => 'Update::DiceEmojis',
945
+ 'updateAnimationSearchParameters' => 'Update::AnimationSearchParameters',
946
+ 'updateSuggestedActions' => 'Update::SuggestedActions',
947
+ 'updateNewInlineQuery' => 'Update::NewInlineQuery',
948
+ 'updateNewChosenInlineResult' => 'Update::NewChosenInlineResult',
949
+ 'updateNewCallbackQuery' => 'Update::NewCallbackQuery',
950
+ 'updateNewInlineCallbackQuery' => 'Update::NewInlineCallbackQuery',
951
+ 'updateNewShippingQuery' => 'Update::NewShippingQuery',
952
+ 'updateNewPreCheckoutQuery' => 'Update::NewPreCheckoutQuery',
953
+ 'updateNewCustomEvent' => 'Update::NewCustomEvent',
954
+ 'updateNewCustomQuery' => 'Update::NewCustomQuery',
955
+ 'updatePoll' => 'Update::Poll',
956
+ 'updatePollAnswer' => 'Update::PollAnswer',
957
+ 'updateChatMember' => 'Update::ChatMember',
958
+ 'updates' => 'Updates',
959
+ 'LogStream' => 'LogStream',
960
+ 'logStreamDefault' => 'LogStream::Default',
961
+ 'logStreamFile' => 'LogStream::File',
962
+ 'logStreamEmpty' => 'LogStream::Empty',
963
+ 'logVerbosityLevel' => 'LogVerbosityLevel',
964
+ 'logTags' => 'LogTags'
965
+ }.freeze
966
+
967
+ module_function
968
+
969
+ # Recursively wraps a hash into typed classes
970
+ def wrap(object)
971
+ # Wrapping each entry in array
972
+ if object.kind_of?(::Array)
973
+ object.map { |o| wrap(o) }
974
+ elsif object.kind_of?(::Hash)
975
+ type = object.delete('@type')
976
+
977
+ object.each do |key, val|
978
+ if val.respond_to?(:each)
979
+ object[key] = wrap(val)
980
+ end
981
+ end
982
+
983
+ unless type
984
+ return object
985
+ end
986
+
987
+ if (klass = LOOKUP_TABLE[type])
988
+ const_get(klass).new(object)
989
+ else
990
+ raise ArgumentError.new("Can't find class for #{type}")
991
+ end
992
+ else
993
+ object
994
+ end
995
+ end
996
+
997
+ # Simple implementation for internal use only.
998
+ def camelize(str)
999
+ str.gsub(/(?:_|(\/)|^)([a-z\d]*)/i) { "#{$1}#{$2.capitalize}" }
1000
+ end
1001
+
1002
+ %w[
1003
+ account_ttl
1004
+ address
1005
+ animated_chat_photo
1006
+ animation
1007
+ animations
1008
+ audio
1009
+ authentication_code_info
1010
+ authentication_code_type
1011
+ authorization_state
1012
+ auto_download_settings
1013
+ auto_download_settings_presets
1014
+ background
1015
+ background_fill
1016
+ background_type
1017
+ backgrounds
1018
+ bank_card_action_open_url
1019
+ bank_card_info
1020
+ base
1021
+ basic_group
1022
+ basic_group_full_info
1023
+ bot_command
1024
+ bot_info
1025
+ call
1026
+ call_discard_reason
1027
+ call_id
1028
+ call_problem
1029
+ call_protocol
1030
+ call_server
1031
+ call_server_type
1032
+ call_state
1033
+ callback_query_answer
1034
+ callback_query_payload
1035
+ can_transfer_ownership_result
1036
+ chat
1037
+ chat_action
1038
+ chat_action_bar
1039
+ chat_administrator
1040
+ chat_administrators
1041
+ chat_event
1042
+ chat_event_action
1043
+ chat_event_log_filters
1044
+ chat_events
1045
+ chat_filter
1046
+ chat_filter_info
1047
+ chat_invite_link
1048
+ chat_invite_link_count
1049
+ chat_invite_link_counts
1050
+ chat_invite_link_info
1051
+ chat_invite_link_member
1052
+ chat_invite_link_members
1053
+ chat_invite_links
1054
+ chat_list
1055
+ chat_lists
1056
+ chat_location
1057
+ chat_member
1058
+ chat_member_status
1059
+ chat_members
1060
+ chat_members_filter
1061
+ chat_nearby
1062
+ chat_notification_settings
1063
+ chat_permissions
1064
+ chat_photo
1065
+ chat_photo_info
1066
+ chat_photos
1067
+ chat_position
1068
+ chat_report_reason
1069
+ chat_source
1070
+ chat_statistics
1071
+ chat_statistics_administrator_actions_info
1072
+ chat_statistics_inviter_info
1073
+ chat_statistics_message_interaction_info
1074
+ chat_statistics_message_sender_info
1075
+ chat_type
1076
+ chats
1077
+ chats_nearby
1078
+ check_chat_username_result
1079
+ closed_vector_path
1080
+ connected_website
1081
+ connected_websites
1082
+ connection_state
1083
+ contact
1084
+ count
1085
+ countries
1086
+ country_info
1087
+ custom_request_result
1088
+ database_statistics
1089
+ date
1090
+ date_range
1091
+ dated_file
1092
+ deep_link_info
1093
+ device_token
1094
+ dice_stickers
1095
+ document
1096
+ draft_message
1097
+ email_address_authentication_code_info
1098
+ emojis
1099
+ encrypted_credentials
1100
+ encrypted_passport_element
1101
+ error
1102
+ file
1103
+ file_part
1104
+ file_type
1105
+ formatted_text
1106
+ found_messages
1107
+ game
1108
+ game_high_score
1109
+ game_high_scores
1110
+ group_call
1111
+ group_call_id
1112
+ group_call_join_response
1113
+ group_call_join_response_candidate
1114
+ group_call_participant
1115
+ group_call_payload
1116
+ group_call_payload_fingerprint
1117
+ group_call_recent_speaker
1118
+ hashtags
1119
+ http_url
1120
+ identity_document
1121
+ imported_contacts
1122
+ inline_keyboard_button
1123
+ inline_keyboard_button_type
1124
+ inline_query_result
1125
+ inline_query_results
1126
+ input_background
1127
+ input_chat_photo
1128
+ input_credentials
1129
+ input_file
1130
+ input_identity_document
1131
+ input_inline_query_result
1132
+ input_message_content
1133
+ input_passport_element
1134
+ input_passport_element_error
1135
+ input_passport_element_error_source
1136
+ input_personal_document
1137
+ input_sticker
1138
+ input_thumbnail
1139
+ invoice
1140
+ json_object_member
1141
+ json_value
1142
+ keyboard_button
1143
+ keyboard_button_type
1144
+ labeled_price_part
1145
+ language_pack_info
1146
+ language_pack_string
1147
+ language_pack_string_value
1148
+ language_pack_strings
1149
+ local_file
1150
+ localization_target_info
1151
+ location
1152
+ log_stream
1153
+ log_tags
1154
+ log_verbosity_level
1155
+ login_url_info
1156
+ mask_point
1157
+ mask_position
1158
+ message
1159
+ message_content
1160
+ message_copy_options
1161
+ message_file_type
1162
+ message_forward_info
1163
+ message_forward_origin
1164
+ message_interaction_info
1165
+ message_link
1166
+ message_link_info
1167
+ message_reply_info
1168
+ message_scheduling_state
1169
+ message_send_options
1170
+ message_sender
1171
+ message_senders
1172
+ message_sending_state
1173
+ message_statistics
1174
+ message_thread_info
1175
+ messages
1176
+ minithumbnail
1177
+ network_statistics
1178
+ network_statistics_entry
1179
+ network_type
1180
+ notification
1181
+ notification_group
1182
+ notification_group_type
1183
+ notification_settings_scope
1184
+ notification_type
1185
+ ok
1186
+ option_value
1187
+ order_info
1188
+ page_block
1189
+ page_block_caption
1190
+ page_block_horizontal_alignment
1191
+ page_block_list_item
1192
+ page_block_related_article
1193
+ page_block_table_cell
1194
+ page_block_vertical_alignment
1195
+ passport_authorization_form
1196
+ passport_element
1197
+ passport_element_error
1198
+ passport_element_error_source
1199
+ passport_element_type
1200
+ passport_elements
1201
+ passport_elements_with_errors
1202
+ passport_required_element
1203
+ passport_suitable_element
1204
+ password_state
1205
+ payment_form
1206
+ payment_form_theme
1207
+ payment_receipt
1208
+ payment_result
1209
+ payments_provider_stripe
1210
+ personal_details
1211
+ personal_document
1212
+ phone_number_authentication_settings
1213
+ phone_number_info
1214
+ photo
1215
+ photo_size
1216
+ point
1217
+ poll
1218
+ poll_option
1219
+ poll_type
1220
+ profile_photo
1221
+ proxies
1222
+ proxy
1223
+ proxy_type
1224
+ public_chat_type
1225
+ push_message_content
1226
+ push_receiver_id
1227
+ recommended_chat_filter
1228
+ recommended_chat_filters
1229
+ recovery_email_address
1230
+ remote_file
1231
+ reply_markup
1232
+ rich_text
1233
+ saved_credentials
1234
+ scope_notification_settings
1235
+ search_messages_filter
1236
+ seconds
1237
+ secret_chat
1238
+ secret_chat_state
1239
+ session
1240
+ sessions
1241
+ shipping_option
1242
+ statistical_graph
1243
+ statistical_value
1244
+ sticker
1245
+ sticker_set
1246
+ sticker_set_info
1247
+ sticker_sets
1248
+ stickers
1249
+ storage_statistics
1250
+ storage_statistics_by_chat
1251
+ storage_statistics_by_file_type
1252
+ storage_statistics_fast
1253
+ suggested_action
1254
+ supergroup
1255
+ supergroup_full_info
1256
+ supergroup_members_filter
1257
+ t_me_url
1258
+ t_me_url_type
1259
+ t_me_urls
1260
+ tdlib_parameters
1261
+ temporary_password_state
1262
+ terms_of_service
1263
+ text
1264
+ text_entities
1265
+ text_entity
1266
+ text_entity_type
1267
+ text_parse_mode
1268
+ thumbnail
1269
+ thumbnail_format
1270
+ top_chat_category
1271
+ update
1272
+ updates
1273
+ user
1274
+ user_full_info
1275
+ user_privacy_setting
1276
+ user_privacy_setting_rule
1277
+ user_privacy_setting_rules
1278
+ user_status
1279
+ user_type
1280
+ users
1281
+ validated_order_info
1282
+ vector_path_command
1283
+ venue
1284
+ video
1285
+ video_note
1286
+ voice_chat
1287
+ voice_note
1288
+ web_page
1289
+ web_page_instant_view
1290
+ ].each do |type|
1291
+ autoload camelize(type), "tdlib/types/#{type}"
1292
+ end
1293
+ end