| 6 |
| * Copyright Nikolai Kudashov, 2015-2018. |
| 7 | */ |
| 8 |
| 9 | #ifndef APISCHEME_H |
| 10 | #define APISCHEME_H |
| 11 |
| 12 | #include <vector> |
| 13 | #include <memory> |
| 14 | #include "TLObject.h" |
| 15 |
| 16 | class ByteArray; |
| 17 | class NativeByteBuffer; |
| 18 |
| 19 | class Bool : public TLObject { |
| 20 |
| 21 | public: |
| 22 | static Bool *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 23 | }; |
| 24 |
| 25 | class TL_boolTrue : public Bool { |
| 26 |
| 27 | public: |
| 28 | static const uint32_t constructor = 0x997275b5; |
| 29 |
| 30 | void serializeToStream(NativeByteBuffer *stream); |
| 31 | }; |
| 32 |
| 33 | class TL_boolFalse : public Bool { |
| 34 |
| 35 | public: |
| 36 | static const uint32_t constructor = 0xbc799737; |
| 37 |
| 38 | void serializeToStream(NativeByteBuffer *stream); |
| 39 | }; |
| 40 |
| 41 | class TL_dcOption : public TLObject { |
| 42 |
| 43 | public: |
| 44 | static const uint32_t constructor = 0x18b7a10d; |
| 45 |
| 46 | int32_t flags; |
| 47 | bool ipv6; |
| 48 | bool media_only; |
| 49 | bool tcpo_only; |
| 50 | bool cdn; |
| 51 | bool isStatic; |
| 52 | bool thisPortOnly; |
| 53 | bool force_try_ipv6; |
| 54 | int32_t id; |
| 55 | std::string ip_address; |
| 56 | int32_t port; |
| 57 | std::unique_ptr<ByteArray> secret; |
| 58 |
| 59 | static TL_dcOption *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 60 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 61 | void serializeToStream(NativeByteBuffer *stream); |
| 62 | }; |
| 63 |
| 64 | class TL_cdnPublicKey : public TLObject { |
| 65 |
| 66 | public: |
| 67 | static const uint32_t constructor = 0xc982eaba; |
| 68 |
| 69 | int32_t dc_id; |
| 70 | std::string public_key; |
| 71 |
| 72 | static TL_cdnPublicKey *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 73 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 74 | void serializeToStream(NativeByteBuffer *stream); |
| 75 | }; |
| 76 |
| 77 | class TL_cdnConfig : public TLObject { |
| 78 |
| 79 | public: |
| 80 | static const uint32_t constructor = 0x5725e40a; |
| 81 |
| 82 | std::vector<std::unique_ptr<TL_cdnPublicKey>> public_keys; |
| 83 |
| 84 | static TL_cdnConfig *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 85 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 86 | void serializeToStream(NativeByteBuffer *stream); |
| 87 | }; |
| 88 |
| 89 | class TL_help_getCdnConfig : public TLObject { |
| 90 |
| 91 | public: |
| 92 | static const uint32_t constructor = 0x52029342; |
| 93 |
| 94 | bool isNeedLayer(); |
| 95 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 96 | void serializeToStream(NativeByteBuffer *stream); |
| 97 | }; |
| 98 |
| 99 | class Reaction : public TLObject { |
| 100 |
| 101 | public: |
| 102 | static Reaction *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 103 | }; |
| 104 |
| 105 |
| 106 | class TL_config : public TLObject { |
| 107 |
| 108 | public: |
| 109 | static const uint32_t constructor = 0xcc1a241e; |
| 110 |
| 111 | int32_t flags; |
| 112 | int32_t date; |
| 113 | int32_t expires; |
| 114 | bool test_mode; |
| 115 | int32_t this_dc; |
| 116 | std::vector<std::unique_ptr<TL_dcOption>> dc_options; |
| 117 | std::string dc_txt_domain_name; |
| 118 | int32_t chat_size_max; |
| 119 | int32_t megagroup_size_max; |
| 120 | int32_t forwarded_count_max; |
| 121 | int32_t online_update_period_ms; |
| 122 | int32_t offline_blur_timeout_ms; |
| 123 | int32_t offline_idle_timeout_ms; |
| 124 | int32_t online_cloud_timeout_ms; |
| 125 | int32_t notify_cloud_delay_ms; |
| 126 | int32_t notify_default_delay_ms; |
| 127 | int32_t push_chat_period_ms; |
| 128 | int32_t push_chat_limit; |
| 129 | // int32_t saved_gifs_limit; |
| 130 | int32_t edit_time_limit; |
| 131 | int32_t revoke_time_limit; |
| 132 | int32_t revoke_pm_time_limit; |
| 133 | int32_t rating_e_decay; |
| 134 | int32_t stickers_recent_limit; |
| 135 | // int32_t stickers_faved_limit; |
| 136 | int32_t channels_read_media_period; |
| 137 | int32_t tmp_sessions; |
| 138 | // int32_t pinned_dialogs_count_max; |
| 139 | // int32_t pinned_infolder_count_max; |
| 140 | int32_t call_receive_timeout_ms; |
| 141 | int32_t call_ring_timeout_ms; |
| 142 | int32_t call_connect_timeout_ms; |
| 143 | int32_t call_packet_timeout_ms; |
| 144 | std::string me_url_prefix; |
| 145 | std::string autoupdate_url_prefix; |
| 146 | std::string gif_search_username; |
| 147 | std::string venue_search_username; |
| 148 | std::string img_search_username; |
| 149 | std::string static_maps_provider; |
| 150 | int32_t caption_length_max; |
| 151 | int32_t message_length_max; |
| 152 | int32_t webfile_dc_id; |
| 153 | std::string suggested_lang_code; |
| 154 | int32_t lang_pack_version; |
| 155 | int32_t base_lang_pack_version; |
| 156 | std::unique_ptr<Reaction> reactions_default; |
| 157 | std::string autologin_token; |
| 158 |
| 159 | static TL_config *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 160 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 161 | void serializeToStream(NativeByteBuffer *stream); |
| 162 | }; |
| 163 |
| 164 | class TL_help_getConfig : public TLObject { |
| 165 |
| 166 | public: |
| 167 | static const uint32_t constructor = 0xc4f9186b; |
| 168 |
| 169 | bool isNeedLayer(); |
| 170 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 171 | void serializeToStream(NativeByteBuffer *stream); |
| 172 | }; |
| 173 |
| 174 | class TL_account_registerDevice : public TLObject { |
| 175 |
| 176 | public: |
| 177 | static const uint32_t constructor = 0x637ea878; |
| 178 |
| 179 | int32_t token_type; |
| 180 | std::string token; |
| 181 |
| 182 | bool isNeedLayer(); |
| 183 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 184 | void serializeToStream(NativeByteBuffer *stream); |
| 185 | }; |
| 186 |
| 187 | class UserStatus : public TLObject { |
| 188 |
| 189 | public: |
| 190 | int32_t expires; |
| 191 |
| 192 | static UserStatus *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 193 | }; |
| 194 |
| 195 | class TL_userStatusOffline : public UserStatus { |
| 196 |
| 197 | public: |
| 198 | static const uint32_t constructor = 0x8c703f; |
| 199 |
| 200 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 201 | void serializeToStream(NativeByteBuffer *stream); |
| 202 | }; |
| 203 |
| 204 | class TL_userStatusLastWeek : public UserStatus { |
| 205 |
| 206 | public: |
| 207 | static const uint32_t constructor = 0x7bf09fc; |
| 208 |
| 209 | uint32_t flags; |
| 210 | bool by_me; |
| 211 |
| 212 | void serializeToStream(NativeByteBuffer *stream); |
| 213 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 214 | }; |
| 215 |
| 216 | class TL_userStatusLastWeek_layer171 : public UserStatus { |
| 217 |
| 218 | public: |
| 219 | static const uint32_t constructor = 0x7bf09fc; |
| 220 |
| 221 | void serializeToStream(NativeByteBuffer *stream); |
| 222 | }; |
| 223 |
| 224 | class TL_userStatusEmpty : public UserStatus { |
| 225 |
| 226 | public: |
| 227 | static const uint32_t constructor = 0x9d05049; |
| 228 |
| 229 | void serializeToStream(NativeByteBuffer *stream); |
| 230 | }; |
| 231 |
| 232 | class TL_userStatusLastMonth : public UserStatus { |
| 233 |
| 234 | public: |
| 235 | static const uint32_t constructor = 0x65899777; |
| 236 |
| 237 | uint32_t flags; |
| 238 | bool by_me; |
| 239 |
| 240 | void serializeToStream(NativeByteBuffer *stream); |
| 241 |
| 242 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 243 | }; |
| 244 |
| 245 | class TL_userStatusLastMonth_layer171 : public UserStatus { |
| 246 |
| 247 | public: |
| 248 | static const uint32_t constructor = 0x77ebc742; |
| 249 |
| 250 | void serializeToStream(NativeByteBuffer *stream); |
| 251 | }; |
| 252 |
| 253 | class TL_userStatusOnline : public UserStatus { |
| 254 |
| 255 | public: |
| 256 | static const uint32_t constructor = 0xedb93949; |
| 257 |
| 258 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 259 | void serializeToStream(NativeByteBuffer *stream); |
| 260 | }; |
| 261 |
| 262 | class TL_userStatusRecently : public UserStatus { |
| 263 |
| 264 | public: |
| 265 | static const uint32_t constructor = 0x7b197dc8; |
| 266 |
| 267 | uint32_t flags; |
| 268 | bool by_me; |
| 269 |
| 270 | void serializeToStream(NativeByteBuffer *stream); |
| 271 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 272 | }; |
| 273 |
| 274 | class TL_userStatusRecently_layer171 : public UserStatus { |
| 275 |
| 276 | public: |
| 277 | static const uint32_t constructor = 0xe26f42f1; |
| 278 |
| 279 | void serializeToStream(NativeByteBuffer *stream); |
| 280 | }; |
| 281 |
| 282 | class TL_userStatusHidden : public UserStatus { |
| 283 |
| 284 | public: |
| 285 | static const uint32_t constructor = 0xcf7d64b1; |
| 286 |
| 287 | void serializeToStream(NativeByteBuffer *stream); |
| 288 | }; |
| 289 |
| 290 | class FileLocation : public TLObject { |
| 291 |
| 292 | public: |
| 293 | int64_t volume_id; |
| 294 | int32_t local_id; |
| 295 |
| 296 | static FileLocation *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 297 | }; |
| 298 |
| 299 | class TL_fileLocationToBeDeprecated : public FileLocation { |
| 300 |
| 301 | public: |
| 302 | static const uint32_t constructor = 0xbc7fc6cd; |
| 303 |
| 304 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 305 | void serializeToStream(NativeByteBuffer *stream); |
| 306 | }; |
| 307 |
| 308 | class UserProfilePhoto : public TLObject { |
| 309 |
| 310 | public: |
| 311 | int32_t flags; |
| 312 | bool has_video; |
| 313 | int64_t photo_id; |
| 314 | std::unique_ptr<ByteArray> stripped_thumb; |
| 315 | int32_t dc_id; |
| 316 |
| 317 | static UserProfilePhoto *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 318 | }; |
| 319 |
| 320 | class TL_userProfilePhotoEmpty : public UserProfilePhoto { |
| 321 |
| 322 | public: |
| 323 | static const uint32_t constructor = 0x4f11bae1; |
| 324 |
| 325 | void serializeToStream(NativeByteBuffer *stream); |
| 326 | }; |
| 327 |
| 328 | class TL_userProfilePhoto : public UserProfilePhoto { |
| 329 |
| 330 | public: |
| 331 | static const uint32_t constructor = 0x82d1f706; |
| 332 |
| 333 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 334 | void serializeToStream(NativeByteBuffer *stream); |
| 335 | }; |
| 336 |
| 337 | class TL_restrictionReason : public TLObject { |
| 338 |
| 339 | public: |
| 340 | static const uint32_t constructor = 0xd072acb4; |
| 341 |
| 342 | std::string platform; |
| 343 | std::string reason; |
| 344 | std::string text; |
| 345 |
| 346 | static TL_restrictionReason *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 347 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 348 | void serializeToStream(NativeByteBuffer *stream); |
| 349 | }; |
| 350 |
| 351 | class TL_username : public TLObject { |
| 352 |
| 353 | public: |
| 354 | static const uint32_t constructor = 0xb4073647; |
| 355 | int32_t flags; |
| 356 | bool editable; |
| 357 | bool active; |
| 358 | std::string username; |
| 359 |
| 360 | static TL_username *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 361 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 362 | void serializeToStream(NativeByteBuffer *stream); |
| 363 | }; |
| 364 |
| 365 | class User : public TLObject { |
| 366 |
| 367 | public: |
| 368 | int64_t id; |
| 369 | std::string first_name; |
| 370 | std::string last_name; |
| 371 | std::string username; |
| 372 | int64_t access_hash; |
| 373 | std::string phone; |
| 374 | std::unique_ptr<UserProfilePhoto> photo; |
| 375 | std::unique_ptr<UserStatus> status; |
| 376 | int32_t flags; |
| 377 | int32_t flags2; |
| 378 | int32_t bot_info_version; |
| 379 | std::vector<std::unique_ptr<TL_restrictionReason>> restriction_reason; |
| 380 | std::string bot_inline_placeholder; |
| 381 | std::string lang_code; |
| 382 | std::vector<std::unique_ptr<TL_username>> usernames; |
| 383 | int32_t stories_max_id; |
| 384 | int32_t emojiStatusMagic; |
| 385 | int64_t emojiStatusDocumentId; |
| 386 | int32_t emojiStatusUntil; |
| 387 | int32_t color_color; |
| 388 | int64_t color_background_emoji_id; |
| 389 | int32_t profile_color_color; |
| 390 | int64_t profile_color_background_emoji_id; |
| 391 | int32_t bot_active_users; |
| 392 |
| 393 | static User *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 394 | }; |
| 395 |
| 396 | class TL_userEmpty : public User { |
| 397 |
| 398 | public: |
| 399 | static const uint32_t constructor = 0xd3bc4b7a; |
| 400 |
| 401 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 402 | void serializeToStream(NativeByteBuffer *stream); |
| 403 | }; |
| 404 |
| 405 | class TL_user : public User { |
| 406 |
| 407 | public: |
| 408 | static const uint32_t constructor = 0x83314fca; |
| 409 |
| 410 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 411 | void serializeToStream(NativeByteBuffer *stream); |
| 412 | }; |
| 413 |
| 414 | class InputPeer : public TLObject { |
| 415 |
| 416 | public: |
| 417 | int64_t user_id; |
| 418 | int64_t chat_id; |
| 419 | int64_t channel_id; |
| 420 | int64_t access_hash; |
| 421 |
| 422 | static InputPeer *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 423 | }; |
| 424 |
| 425 | class TL_inputPeerSelf : public InputPeer { |
| 426 |
| 427 | public: |
| 428 | static const uint32_t constructor = 0x7da07ec9; |
| 429 |
| 430 | void serializeToStream(NativeByteBuffer *stream); |
| 431 | }; |
| 432 |
| 433 | class TL_inputPeerUser : public InputPeer { |
| 434 |
| 435 | public: |
| 436 | static const uint32_t constructor = 0xdde8a54c; |
| 437 |
| 438 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 439 | void serializeToStream(NativeByteBuffer *stream); |
| 440 | }; |
| 441 |
| 442 | class TL_inputPeerChat : public InputPeer { |
| 443 |
| 444 | public: |
| 445 | static const uint32_t constructor = 0x35a95cb9; |
| 446 |
| 447 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 448 | void serializeToStream(NativeByteBuffer *stream); |
| 449 | }; |
| 450 |
| 451 | class TL_inputPeerUserFromMessage : public InputPeer { |
| 452 |
| 453 | public: |
| 454 | static const uint32_t constructor = 0xa87b0a1c; |
| 455 |
| 456 | std::unique_ptr<InputPeer> peer; |
| 457 | int32_t msg_id; |
| 458 |
| 459 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 460 | void serializeToStream(NativeByteBuffer *stream); |
| 461 | }; |
| 462 |
| 463 | class TL_inputPeerChannelFromMessage : public InputPeer { |
| 464 |
| 465 | public: |
| 466 | static const uint32_t constructor = 0xbd2a0840; |
| 467 |
| 468 | std::unique_ptr<InputPeer> peer; |
| 469 | int32_t msg_id; |
| 470 |
| 471 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 472 | void serializeToStream(NativeByteBuffer *stream); |
| 473 | }; |
| 474 |
| 475 | class TL_inputPeerChannel : public InputPeer { |
| 476 |
| 477 | public: |
| 478 | static const uint32_t constructor = 0x27bcbbfc; |
| 479 |
| 480 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 481 | void serializeToStream(NativeByteBuffer *stream); |
| 482 | }; |
| 483 |
| 484 | class TL_inputPeerEmpty : public InputPeer { |
| 485 |
| 486 | public: |
| 487 | static const uint32_t constructor = 0x7f3b18ea; |
| 488 |
| 489 | void serializeToStream(NativeByteBuffer *stream); |
| 490 | }; |
| 491 |
| 492 | class InputUser : public TLObject { |
| 493 |
| 494 | public: |
| 495 | int64_t user_id; |
| 496 | int64_t access_hash; |
| 497 |
| 498 | static InputUser *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 499 | }; |
| 500 |
| 501 | class TL_inputUserSelf : public InputUser { |
| 502 |
| 503 | public: |
| 504 | static const uint32_t constructor = 0xf7c1b13f; |
| 505 |
| 506 | void serializeToStream(NativeByteBuffer *stream); |
| 507 | }; |
| 508 |
| 509 | class TL_inputUser : public InputUser { |
| 510 |
| 511 | public: |
| 512 | static const uint32_t constructor = 0xf21158c6; |
| 513 |
| 514 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 515 | void serializeToStream(NativeByteBuffer *stream); |
| 516 | }; |
| 517 |
| 518 | class TL_inputUserEmpty : public InputUser { |
| 519 |
| 520 | public: |
| 521 | static const uint32_t constructor = 0xb98886cf; |
| 522 |
| 523 | void serializeToStream(NativeByteBuffer *stream); |
| 524 | }; |
| 525 |
| 526 | class TL_inputUserFromMessage : public InputUser { |
| 527 |
| 528 | public: |
| 529 | static const uint32_t constructor = 0x1da448e2; |
| 530 |
| 531 | std::unique_ptr<InputPeer> peer; |
| 532 | int32_t msg_id; |
| 533 |
| 534 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 535 | void serializeToStream(NativeByteBuffer *stream); |
| 536 | }; |
| 537 |
| 538 | class MessageEntity : public TLObject { |
| 539 |
| 540 | public: |
| 541 | int32_t flags; |
| 542 | int32_t offset; |
| 543 | int32_t length; |
| 544 | std::string url; |
| 545 | std::string language; |
| 546 |
| 547 | static MessageEntity *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 548 | }; |
| 549 |
| 550 | class TL_messageEntityTextUrl : public MessageEntity { |
| 551 |
| 552 | public: |
| 553 | static const uint32_t constructor = 0x76a6d327; |
| 554 |
| 555 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 556 | void serializeToStream(NativeByteBuffer *stream); |
| 557 | }; |
| 558 |
| 559 | class TL_messageEntityBotCommand : public MessageEntity { |
| 560 |
| 561 | public: |
| 562 | static const uint32_t constructor = 0x6cef8ac7; |
| 563 |
| 564 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 565 | void serializeToStream(NativeByteBuffer *stream); |
| 566 | }; |
| 567 |
| 568 | class TL_messageEntityEmail : public MessageEntity { |
| 569 |
| 570 | public: |
| 571 | static const uint32_t constructor = 0x64e475c2; |
| 572 |
| 573 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 574 | void serializeToStream(NativeByteBuffer *stream); |
| 575 | }; |
| 576 |
| 577 | class TL_messageEntityPre : public MessageEntity { |
| 578 |
| 579 | public: |
| 580 | static const uint32_t constructor = 0x73924be0; |
| 581 |
| 582 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 583 | void serializeToStream(NativeByteBuffer *stream); |
| 584 | }; |
| 585 |
| 586 | class TL_messageEntityUnknown : public MessageEntity { |
| 587 | public: |
| 588 | static const uint32_t constructor = 0xbb92ba95; |
| 589 |
| 590 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 591 | void serializeToStream(NativeByteBuffer *stream); |
| 592 | }; |
| 593 |
| 594 | class TL_messageEntityUrl : public MessageEntity { |
| 595 |
| 596 | public: |
| 597 | static const uint32_t constructor = 0x6ed02538; |
| 598 |
| 599 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 600 | void serializeToStream(NativeByteBuffer *stream); |
| 601 | }; |
| 602 |
| 603 | class TL_messageEntityItalic : public MessageEntity { |
| 604 |
| 605 | public: |
| 606 | static const uint32_t constructor = 0x826f8b60; |
| 607 |
| 608 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 609 | void serializeToStream(NativeByteBuffer *stream); |
| 610 | }; |
| 611 |
| 612 | class TL_messageEntityMention : public MessageEntity { |
| 613 |
| 614 | public: |
| 615 | static const uint32_t constructor = 0xfa04579d; |
| 616 |
| 617 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 618 | void serializeToStream(NativeByteBuffer *stream); |
| 619 | }; |
| 620 |
| 621 | class TL_messageEntityMentionName : public MessageEntity { |
| 622 |
| 623 | public: |
| 624 | static const uint32_t constructor = 0xdc7b1140; |
| 625 |
| 626 | int64_t user_id; |
| 627 |
| 628 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 629 | void serializeToStream(NativeByteBuffer *stream); |
| 630 | }; |
| 631 |
| 632 | class TL_inputMessageEntityMentionName : public MessageEntity { |
| 633 |
| 634 | public: |
| 635 | static const uint32_t constructor = 0x208e68c9; |
| 636 |
| 637 | std::unique_ptr<InputUser> user_id; |
| 638 |
| 639 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 640 | void serializeToStream(NativeByteBuffer *stream); |
| 641 | }; |
| 642 |
| 643 | class TL_messageEntityCashtag : public MessageEntity { |
| 644 |
| 645 | public: |
| 646 | static const uint32_t constructor = 0x4c4e743f; |
| 647 |
| 648 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 649 | void serializeToStream(NativeByteBuffer *stream); |
| 650 | }; |
| 651 |
| 652 | class TL_messageEntityBold : public MessageEntity { |
| 653 |
| 654 | public: |
| 655 | static const uint32_t constructor = 0xbd610bc9; |
| 656 |
| 657 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 658 | void serializeToStream(NativeByteBuffer *stream); |
| 659 | }; |
| 660 |
| 661 | class TL_messageEntityHashtag : public MessageEntity { |
| 662 |
| 663 | public: |
| 664 | static const uint32_t constructor = 0x6f635b0d; |
| 665 |
| 666 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 667 | void serializeToStream(NativeByteBuffer *stream); |
| 668 | }; |
| 669 |
| 670 | class TL_messageEntityCode : public MessageEntity { |
| 671 |
| 672 | public: |
| 673 | static const uint32_t constructor = 0x28a20571; |
| 674 |
| 675 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 676 | void serializeToStream(NativeByteBuffer *stream); |
| 677 | }; |
| 678 |
| 679 | class TL_messageEntityStrike : public MessageEntity { |
| 680 |
| 681 | public: |
| 682 | static const uint32_t constructor = 0xbf0693d4; |
| 683 |
| 684 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 685 | void serializeToStream(NativeByteBuffer *stream); |
| 686 | }; |
| 687 |
| 688 | class TL_messageEntityBlockquote : public MessageEntity { |
| 689 |
| 690 | public: |
| 691 | static const uint32_t constructor = 0xf1ccaaac; |
| 692 |
| 693 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 694 | void serializeToStream(NativeByteBuffer *stream); |
| 695 | }; |
| 696 |
| 697 | class TL_messageEntityBlockquote_layer180 : public MessageEntity { |
| 698 |
| 699 | public: |
| 700 | static const uint32_t constructor = 0x20df5d0; |
| 701 |
| 702 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 703 | void serializeToStream(NativeByteBuffer *stream); |
| 704 | }; |
| 705 |
| 706 | class TL_messageEntityUnderline : public MessageEntity { |
| 707 |
| 708 | public: |
| 709 | static const uint32_t constructor = 0x9c4e7e8b; |
| 710 |
| 711 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 712 | void serializeToStream(NativeByteBuffer *stream); |
| 713 | }; |
| 714 |
| 715 | class TL_messageEntityPhone : public MessageEntity { |
| 716 |
| 717 | public: |
| 718 | static const uint32_t constructor = 0x9b69e34b; |
| 719 |
| 720 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 721 | void serializeToStream(NativeByteBuffer *stream); |
| 722 | }; |
| 723 |
| 724 | class TL_dataJSON : public TLObject { |
| 725 |
| 726 | public: |
| 727 | static const uint32_t constructor = 0x7d748d04; |
| 728 |
| 729 | std::string data; |
| 730 |
| 731 | static TL_dataJSON *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 732 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 733 | void serializeToStream(NativeByteBuffer *stream); |
| 734 | }; |
| 735 |
| 736 | class TL_help_termsOfService : public TLObject { |
| 737 |
| 738 | public: |
| 739 | static const uint32_t constructor = 0x780a0310; |
| 740 |
| 741 | int32_t flags; |
| 742 | bool popup; |
| 743 | std::unique_ptr<TL_dataJSON> id; |
| 744 | std::string text; |
| 745 | std::vector<std::unique_ptr<MessageEntity>> entities; |
| 746 | int32_t min_age_confirm; |
| 747 |
| 748 | static TL_help_termsOfService *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 749 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 750 | void serializeToStream(NativeByteBuffer *stream); |
| 751 | }; |
| 752 |
| 753 | class auth_Authorization : public TLObject { |
| 754 |
| 755 | public: |
| 756 | static auth_Authorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 757 | }; |
| 758 |
| 759 | class TL_auth_authorizationSignUpRequired : public auth_Authorization { |
| 760 |
| 761 | public: |
| 762 | static const uint32_t constructor = 0x44747e9a; |
| 763 |
| 764 | int32_t flags; |
| 765 | std::unique_ptr<TL_help_termsOfService> terms_of_service; |
| 766 |
| 767 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 768 | void serializeToStream(NativeByteBuffer *stream); |
| 769 | }; |
| 770 |
| 771 | class TL_auth_authorization : public auth_Authorization { |
| 772 |
| 773 | public: |
| 774 | static const uint32_t constructor = 0x2ea2c0d4; |
| 775 |
| 776 | int32_t flags; |
| 777 | int32_t tmp_sessions; |
| 778 | int32_t otherwise_relogin_days; |
| 779 | std::unique_ptr<ByteArray> future_auth_token; |
| 780 | std::unique_ptr<User> user; |
| 781 |
| 782 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 783 | void serializeToStream(NativeByteBuffer *stream); |
| 784 | }; |
| 785 |
| 786 | class TL_auth_exportedAuthorization : public TLObject { |
| 787 |
| 788 | public: |
| 789 | static const uint32_t constructor = 0xb434e2b8; |
| 790 |
| 791 | int64_t id; |
| 792 | std::unique_ptr<ByteArray> bytes; |
| 793 |
| 794 | static TL_auth_exportedAuthorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 795 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 796 | }; |
| 797 |
| 798 | class TL_auth_exportAuthorization : public TLObject { |
| 799 |
| 800 | public: |
| 801 | static const uint32_t constructor = 0xe5bfffcd; |
| 802 |
| 803 | int32_t dc_id; |
| 804 |
| 805 | bool isNeedLayer(); |
| 806 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 807 | void serializeToStream(NativeByteBuffer *stream); |
| 808 | }; |
| 809 |
| 810 | class TL_auth_importAuthorization : public TLObject { |
| 811 |
| 812 | public: |
| 813 | static const uint32_t constructor = 0xa57a7dad; |
| 814 |
| 815 | int64_t id; |
| 816 | std::unique_ptr<ByteArray> bytes; |
| 817 |
| 818 | bool isNeedLayer(); |
| 819 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 820 | void serializeToStream(NativeByteBuffer *stream); |
| 821 | }; |
| 822 |
| 823 | class TL_updatesTooLong : public TLObject { |
| 824 |
| 825 | public: |
| 826 | static const uint32_t constructor = 0xe317af7e; |
| 827 |
| 828 | void serializeToStream(NativeByteBuffer *stream); |
| 829 | }; |
| 830 |
| 831 |
| 832 | class TL_reactionCustomEmoji : public Reaction { |
| 833 |
| 834 | public: |
| 835 | static const uint32_t constructor = 0x8935fc73; |
| 836 | int64_t document_id; |
| 837 |
| 838 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 839 | void serializeToStream(NativeByteBuffer *stream); |
| 840 | }; |
| 841 |
| 842 |
| 843 | class TL_reactionEmoji : public Reaction { |
| 844 |
| 845 | public: |
| 846 | static const uint32_t constructor = 0x1b2286b8; |
| 847 | std::string emoticon; |
| 848 |
| 849 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 850 | void serializeToStream(NativeByteBuffer *stream); |
| 851 | }; |
| 852 |
| 853 |
| 854 |
| 855 | class TL_reactionEmpty : public Reaction { |
| 856 |
| 857 | public: |
| 858 | static const uint32_t constructor = 0x79f5d419; |
| 859 |
| 860 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 861 | void serializeToStream(NativeByteBuffer *stream); |
| 862 | }; |
| 863 |
| 864 | #endif |
| 865 |