| 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 | int32_t id; |
| 53 | std::string ip_address; |
| 54 | int32_t port; |
| 55 | std::unique_ptr<ByteArray> secret; |
| 56 |
| 57 | static TL_dcOption *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 58 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 59 | void serializeToStream(NativeByteBuffer *stream); |
| 60 | }; |
| 61 |
| 62 | class TL_cdnPublicKey : public TLObject { |
| 63 |
| 64 | public: |
| 65 | static const uint32_t constructor = 0xc982eaba; |
| 66 |
| 67 | int32_t dc_id; |
| 68 | std::string public_key; |
| 69 |
| 70 | static TL_cdnPublicKey *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 71 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 72 | void serializeToStream(NativeByteBuffer *stream); |
| 73 | }; |
| 74 |
| 75 | class TL_cdnConfig : public TLObject { |
| 76 |
| 77 | public: |
| 78 | static const uint32_t constructor = 0x5725e40a; |
| 79 |
| 80 | std::vector<std::unique_ptr<TL_cdnPublicKey>> public_keys; |
| 81 |
| 82 | static TL_cdnConfig *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 83 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 84 | void serializeToStream(NativeByteBuffer *stream); |
| 85 | }; |
| 86 |
| 87 | class TL_help_getCdnConfig : public TLObject { |
| 88 |
| 89 | public: |
| 90 | static const uint32_t constructor = 0x52029342; |
| 91 |
| 92 | bool isNeedLayer(); |
| 93 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 94 | void serializeToStream(NativeByteBuffer *stream); |
| 95 | }; |
| 96 |
| 97 | class TL_config : public TLObject { |
| 98 |
| 99 | public: |
| 100 | static const uint32_t constructor = 0x330b4067; |
| 101 |
| 102 | int32_t flags; |
| 103 | int32_t date; |
| 104 | int32_t expires; |
| 105 | bool test_mode; |
| 106 | int32_t this_dc; |
| 107 | std::vector<std::unique_ptr<TL_dcOption>> dc_options; |
| 108 | std::string dc_txt_domain_name; |
| 109 | int32_t chat_size_max; |
| 110 | int32_t megagroup_size_max; |
| 111 | int32_t forwarded_count_max; |
| 112 | int32_t online_update_period_ms; |
| 113 | int32_t offline_blur_timeout_ms; |
| 114 | int32_t offline_idle_timeout_ms; |
| 115 | int32_t online_cloud_timeout_ms; |
| 116 | int32_t notify_cloud_delay_ms; |
| 117 | int32_t notify_default_delay_ms; |
| 118 | int32_t push_chat_period_ms; |
| 119 | int32_t push_chat_limit; |
| 120 | int32_t saved_gifs_limit; |
| 121 | int32_t edit_time_limit; |
| 122 | int32_t revoke_time_limit; |
| 123 | int32_t revoke_pm_time_limit; |
| 124 | int32_t rating_e_decay; |
| 125 | int32_t stickers_recent_limit; |
| 126 | int32_t stickers_faved_limit; |
| 127 | int32_t channels_read_media_period; |
| 128 | int32_t tmp_sessions; |
| 129 | int32_t pinned_dialogs_count_max; |
| 130 | int32_t pinned_infolder_count_max; |
| 131 | int32_t call_receive_timeout_ms; |
| 132 | int32_t call_ring_timeout_ms; |
| 133 | int32_t call_connect_timeout_ms; |
| 134 | int32_t call_packet_timeout_ms; |
| 135 | std::string me_url_prefix; |
| 136 | std::string autoupdate_url_prefix; |
| 137 | std::string gif_search_username; |
| 138 | std::string venue_search_username; |
| 139 | std::string img_search_username; |
| 140 | std::string static_maps_provider; |
| 141 | int32_t caption_length_max; |
| 142 | int32_t message_length_max; |
| 143 | int32_t webfile_dc_id; |
| 144 | std::string suggested_lang_code; |
| 145 | int32_t lang_pack_version; |
| 146 | int32_t base_lang_pack_version; |
| 147 |
| 148 | static TL_config *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 149 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 150 | void serializeToStream(NativeByteBuffer *stream); |
| 151 | }; |
| 152 |
| 153 | class TL_help_getConfig : public TLObject { |
| 154 |
| 155 | public: |
| 156 | static const uint32_t constructor = 0xc4f9186b; |
| 157 |
| 158 | bool isNeedLayer(); |
| 159 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 160 | void serializeToStream(NativeByteBuffer *stream); |
| 161 | }; |
| 162 |
| 163 | class TL_account_registerDevice : public TLObject { |
| 164 |
| 165 | public: |
| 166 | static const uint32_t constructor = 0x637ea878; |
| 167 |
| 168 | int32_t token_type; |
| 169 | std::string token; |
| 170 |
| 171 | bool isNeedLayer(); |
| 172 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 173 | void serializeToStream(NativeByteBuffer *stream); |
| 174 | }; |
| 175 |
| 176 | class UserStatus : public TLObject { |
| 177 |
| 178 | public: |
| 179 | int32_t expires; |
| 180 |
| 181 | static UserStatus *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 182 | }; |
| 183 |
| 184 | class TL_userStatusOffline : public UserStatus { |
| 185 |
| 186 | public: |
| 187 | static const uint32_t constructor = 0x8c703f; |
| 188 |
| 189 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 190 | void serializeToStream(NativeByteBuffer *stream); |
| 191 | }; |
| 192 |
| 193 | class TL_userStatusLastWeek : public UserStatus { |
| 194 |
| 195 | public: |
| 196 | static const uint32_t constructor = 0x7bf09fc; |
| 197 |
| 198 | void serializeToStream(NativeByteBuffer *stream); |
| 199 | }; |
| 200 |
| 201 | class TL_userStatusEmpty : public UserStatus { |
| 202 |
| 203 | public: |
| 204 | static const uint32_t constructor = 0x9d05049; |
| 205 |
| 206 | void serializeToStream(NativeByteBuffer *stream); |
| 207 | }; |
| 208 |
| 209 | class TL_userStatusLastMonth : public UserStatus { |
| 210 |
| 211 | public: |
| 212 | static const uint32_t constructor = 0x77ebc742; |
| 213 |
| 214 | void serializeToStream(NativeByteBuffer *stream); |
| 215 | }; |
| 216 |
| 217 | class TL_userStatusOnline : public UserStatus { |
| 218 |
| 219 | public: |
| 220 | static const uint32_t constructor = 0xedb93949; |
| 221 |
| 222 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 223 | void serializeToStream(NativeByteBuffer *stream); |
| 224 | }; |
| 225 |
| 226 | class TL_userStatusRecently : public UserStatus { |
| 227 |
| 228 | public: |
| 229 | static const uint32_t constructor = 0xe26f42f1; |
| 230 |
| 231 | void serializeToStream(NativeByteBuffer *stream); |
| 232 | }; |
| 233 |
| 234 | class FileLocation : public TLObject { |
| 235 |
| 236 | public: |
| 237 | int64_t volume_id; |
| 238 | int32_t local_id; |
| 239 |
| 240 | static FileLocation *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 241 | }; |
| 242 |
| 243 | class TL_fileLocationToBeDeprecated : public FileLocation { |
| 244 |
| 245 | public: |
| 246 | static const uint32_t constructor = 0xbc7fc6cd; |
| 247 |
| 248 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 249 | void serializeToStream(NativeByteBuffer *stream); |
| 250 | }; |
| 251 |
| 252 | class UserProfilePhoto : public TLObject { |
| 253 |
| 254 | public: |
| 255 | int32_t flags; |
| 256 | bool has_video; |
| 257 | int64_t photo_id; |
| 258 | std::unique_ptr<ByteArray> stripped_thumb; |
| 259 | int32_t dc_id; |
| 260 |
| 261 | static UserProfilePhoto *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 262 | }; |
| 263 |
| 264 | class TL_userProfilePhotoEmpty : public UserProfilePhoto { |
| 265 |
| 266 | public: |
| 267 | static const uint32_t constructor = 0x4f11bae1; |
| 268 |
| 269 | void serializeToStream(NativeByteBuffer *stream); |
| 270 | }; |
| 271 |
| 272 | class TL_userProfilePhoto : public UserProfilePhoto { |
| 273 |
| 274 | public: |
| 275 | static const uint32_t constructor = 0x82d1f706; |
| 276 |
| 277 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 278 | void serializeToStream(NativeByteBuffer *stream); |
| 279 | }; |
| 280 |
| 281 | class TL_restrictionReason : public TLObject { |
| 282 |
| 283 | public: |
| 284 | static const uint32_t constructor = 0xd072acb4; |
| 285 |
| 286 | std::string platform; |
| 287 | std::string reason; |
| 288 | std::string text; |
| 289 |
| 290 | static TL_restrictionReason *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 291 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 292 | void serializeToStream(NativeByteBuffer *stream); |
| 293 | }; |
| 294 |
| 295 | class User : public TLObject { |
| 296 |
| 297 | public: |
| 298 | int32_t id; |
| 299 | std::string first_name; |
| 300 | std::string last_name; |
| 301 | std::string username; |
| 302 | int64_t access_hash; |
| 303 | std::string phone; |
| 304 | std::unique_ptr<UserProfilePhoto> photo; |
| 305 | std::unique_ptr<UserStatus> status; |
| 306 | int32_t flags; |
| 307 | int32_t bot_info_version; |
| 308 | std::vector<std::unique_ptr<TL_restrictionReason>> restriction_reason; |
| 309 | std::string bot_inline_placeholder; |
| 310 | std::string lang_code; |
| 311 |
| 312 | static User *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 313 | }; |
| 314 |
| 315 | class TL_userEmpty : public User { |
| 316 |
| 317 | public: |
| 318 | static const uint32_t constructor = 0x200250ba; |
| 319 |
| 320 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 321 | void serializeToStream(NativeByteBuffer *stream); |
| 322 | }; |
| 323 |
| 324 | class TL_user : public User { |
| 325 |
| 326 | public: |
| 327 | static const uint32_t constructor = 0x938458c1; |
| 328 |
| 329 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 330 | void serializeToStream(NativeByteBuffer *stream); |
| 331 | }; |
| 332 |
| 333 | class InputPeer : public TLObject { |
| 334 |
| 335 | public: |
| 336 | int32_t user_id; |
| 337 | int32_t chat_id; |
| 338 | int32_t channel_id; |
| 339 | int64_t access_hash; |
| 340 |
| 341 | static InputPeer *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 342 | }; |
| 343 |
| 344 | class TL_inputPeerSelf : public InputPeer { |
| 345 |
| 346 | public: |
| 347 | static const uint32_t constructor = 0x7da07ec9; |
| 348 |
| 349 | void serializeToStream(NativeByteBuffer *stream); |
| 350 | }; |
| 351 |
| 352 | class TL_inputPeerUser : public InputPeer { |
| 353 |
| 354 | public: |
| 355 | static const uint32_t constructor = 0x7b8e7de6; |
| 356 |
| 357 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 358 | void serializeToStream(NativeByteBuffer *stream); |
| 359 | }; |
| 360 |
| 361 | class TL_inputPeerChat : public InputPeer { |
| 362 |
| 363 | public: |
| 364 | static const uint32_t constructor = 0x179be863; |
| 365 |
| 366 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 367 | void serializeToStream(NativeByteBuffer *stream); |
| 368 | }; |
| 369 |
| 370 | class TL_inputPeerUserFromMessage : public InputPeer { |
| 371 |
| 372 | public: |
| 373 | static const uint32_t constructor = 0x17bae2e6; |
| 374 |
| 375 | std::unique_ptr<InputPeer> peer; |
| 376 | int32_t msg_id; |
| 377 |
| 378 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 379 | void serializeToStream(NativeByteBuffer *stream); |
| 380 | }; |
| 381 |
| 382 | class TL_inputPeerChannelFromMessage : public InputPeer { |
| 383 |
| 384 | public: |
| 385 | static const uint32_t constructor = 0x9c95f7bb; |
| 386 |
| 387 | std::unique_ptr<InputPeer> peer; |
| 388 | int32_t msg_id; |
| 389 |
| 390 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 391 | void serializeToStream(NativeByteBuffer *stream); |
| 392 | }; |
| 393 |
| 394 | class TL_inputPeerChannel : public InputPeer { |
| 395 |
| 396 | public: |
| 397 | static const uint32_t constructor = 0x20adaef8; |
| 398 |
| 399 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 400 | void serializeToStream(NativeByteBuffer *stream); |
| 401 | }; |
| 402 |
| 403 | class TL_inputPeerEmpty : public InputPeer { |
| 404 |
| 405 | public: |
| 406 | static const uint32_t constructor = 0x7f3b18ea; |
| 407 |
| 408 | void serializeToStream(NativeByteBuffer *stream); |
| 409 | }; |
| 410 |
| 411 | class InputUser : public TLObject { |
| 412 |
| 413 | public: |
| 414 | int32_t user_id; |
| 415 | int64_t access_hash; |
| 416 |
| 417 | static InputUser *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 418 | }; |
| 419 |
| 420 | class TL_inputUserSelf : public InputUser { |
| 421 |
| 422 | public: |
| 423 | static const uint32_t constructor = 0xf7c1b13f; |
| 424 |
| 425 | void serializeToStream(NativeByteBuffer *stream); |
| 426 | }; |
| 427 |
| 428 | class TL_inputUser : public InputUser { |
| 429 |
| 430 | public: |
| 431 | static const uint32_t constructor = 0xd8292816; |
| 432 |
| 433 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 434 | void serializeToStream(NativeByteBuffer *stream); |
| 435 | }; |
| 436 |
| 437 | class TL_inputUserEmpty : public InputUser { |
| 438 |
| 439 | public: |
| 440 | static const uint32_t constructor = 0xb98886cf; |
| 441 |
| 442 | void serializeToStream(NativeByteBuffer *stream); |
| 443 | }; |
| 444 |
| 445 | class TL_inputUserFromMessage : public InputUser { |
| 446 |
| 447 | public: |
| 448 | static const uint32_t constructor = 0x2d117597; |
| 449 |
| 450 | std::unique_ptr<InputPeer> peer; |
| 451 | int32_t msg_id; |
| 452 |
| 453 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 454 | void serializeToStream(NativeByteBuffer *stream); |
| 455 | }; |
| 456 |
| 457 | class MessageEntity : public TLObject { |
| 458 |
| 459 | public: |
| 460 | int32_t offset; |
| 461 | int32_t length; |
| 462 | std::string url; |
| 463 | std::string language; |
| 464 |
| 465 | static MessageEntity *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 466 | }; |
| 467 |
| 468 | class TL_messageEntityTextUrl : public MessageEntity { |
| 469 |
| 470 | public: |
| 471 | static const uint32_t constructor = 0x76a6d327; |
| 472 |
| 473 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 474 | void serializeToStream(NativeByteBuffer *stream); |
| 475 | }; |
| 476 |
| 477 | class TL_messageEntityBotCommand : public MessageEntity { |
| 478 |
| 479 | public: |
| 480 | static const uint32_t constructor = 0x6cef8ac7; |
| 481 |
| 482 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 483 | void serializeToStream(NativeByteBuffer *stream); |
| 484 | }; |
| 485 |
| 486 | class TL_messageEntityEmail : public MessageEntity { |
| 487 |
| 488 | public: |
| 489 | static const uint32_t constructor = 0x64e475c2; |
| 490 |
| 491 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 492 | void serializeToStream(NativeByteBuffer *stream); |
| 493 | }; |
| 494 |
| 495 | class TL_messageEntityPre : public MessageEntity { |
| 496 |
| 497 | public: |
| 498 | static const uint32_t constructor = 0x73924be0; |
| 499 |
| 500 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 501 | void serializeToStream(NativeByteBuffer *stream); |
| 502 | }; |
| 503 |
| 504 | class TL_messageEntityUnknown : public MessageEntity { |
| 505 | public: |
| 506 | static const uint32_t constructor = 0xbb92ba95; |
| 507 |
| 508 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 509 | void serializeToStream(NativeByteBuffer *stream); |
| 510 | }; |
| 511 |
| 512 | class TL_messageEntityUrl : public MessageEntity { |
| 513 |
| 514 | public: |
| 515 | static const uint32_t constructor = 0x6ed02538; |
| 516 |
| 517 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 518 | void serializeToStream(NativeByteBuffer *stream); |
| 519 | }; |
| 520 |
| 521 | class TL_messageEntityItalic : public MessageEntity { |
| 522 |
| 523 | public: |
| 524 | static const uint32_t constructor = 0x826f8b60; |
| 525 |
| 526 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 527 | void serializeToStream(NativeByteBuffer *stream); |
| 528 | }; |
| 529 |
| 530 | class TL_messageEntityMention : public MessageEntity { |
| 531 |
| 532 | public: |
| 533 | static const uint32_t constructor = 0xfa04579d; |
| 534 |
| 535 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 536 | void serializeToStream(NativeByteBuffer *stream); |
| 537 | }; |
| 538 |
| 539 | class TL_messageEntityMentionName : public MessageEntity { |
| 540 |
| 541 | public: |
| 542 | static const uint32_t constructor = 0x352dca58; |
| 543 |
| 544 | int32_t user_id; |
| 545 |
| 546 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 547 | void serializeToStream(NativeByteBuffer *stream); |
| 548 | }; |
| 549 |
| 550 | class TL_inputMessageEntityMentionName : public MessageEntity { |
| 551 |
| 552 | public: |
| 553 | static const uint32_t constructor = 0x208e68c9; |
| 554 |
| 555 | std::unique_ptr<InputUser> user_id; |
| 556 |
| 557 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 558 | void serializeToStream(NativeByteBuffer *stream); |
| 559 | }; |
| 560 |
| 561 | class TL_messageEntityCashtag : public MessageEntity { |
| 562 |
| 563 | public: |
| 564 | static const uint32_t constructor = 0x4c4e743f; |
| 565 |
| 566 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 567 | void serializeToStream(NativeByteBuffer *stream); |
| 568 | }; |
| 569 |
| 570 | class TL_messageEntityBold : public MessageEntity { |
| 571 |
| 572 | public: |
| 573 | static const uint32_t constructor = 0xbd610bc9; |
| 574 |
| 575 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 576 | void serializeToStream(NativeByteBuffer *stream); |
| 577 | }; |
| 578 |
| 579 | class TL_messageEntityHashtag : public MessageEntity { |
| 580 |
| 581 | public: |
| 582 | static const uint32_t constructor = 0x6f635b0d; |
| 583 |
| 584 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 585 | void serializeToStream(NativeByteBuffer *stream); |
| 586 | }; |
| 587 |
| 588 | class TL_messageEntityCode : public MessageEntity { |
| 589 |
| 590 | public: |
| 591 | static const uint32_t constructor = 0x28a20571; |
| 592 |
| 593 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 594 | void serializeToStream(NativeByteBuffer *stream); |
| 595 | }; |
| 596 |
| 597 | class TL_messageEntityStrike : public MessageEntity { |
| 598 |
| 599 | public: |
| 600 | static const uint32_t constructor = 0xbf0693d4; |
| 601 |
| 602 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 603 | void serializeToStream(NativeByteBuffer *stream); |
| 604 | }; |
| 605 |
| 606 | class TL_messageEntityBlockquote : public MessageEntity { |
| 607 |
| 608 | public: |
| 609 | static const uint32_t constructor = 0x20df5d0; |
| 610 |
| 611 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 612 | void serializeToStream(NativeByteBuffer *stream); |
| 613 | }; |
| 614 |
| 615 | class TL_messageEntityUnderline : public MessageEntity { |
| 616 |
| 617 | public: |
| 618 | static const uint32_t constructor = 0x9c4e7e8b; |
| 619 |
| 620 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 621 | void serializeToStream(NativeByteBuffer *stream); |
| 622 | }; |
| 623 |
| 624 | class TL_messageEntityPhone : public MessageEntity { |
| 625 |
| 626 | public: |
| 627 | static const uint32_t constructor = 0x9b69e34b; |
| 628 |
| 629 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 630 | void serializeToStream(NativeByteBuffer *stream); |
| 631 | }; |
| 632 |
| 633 | class TL_dataJSON : public TLObject { |
| 634 |
| 635 | public: |
| 636 | static const uint32_t constructor = 0x7d748d04; |
| 637 |
| 638 | std::string data; |
| 639 |
| 640 | static TL_dataJSON *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 641 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 642 | void serializeToStream(NativeByteBuffer *stream); |
| 643 | }; |
| 644 |
| 645 | class TL_help_termsOfService : public TLObject { |
| 646 |
| 647 | public: |
| 648 | static const uint32_t constructor = 0x780a0310; |
| 649 |
| 650 | int32_t flags; |
| 651 | bool popup; |
| 652 | std::unique_ptr<TL_dataJSON> id; |
| 653 | std::string text; |
| 654 | std::vector<std::unique_ptr<MessageEntity>> entities; |
| 655 | int32_t min_age_confirm; |
| 656 |
| 657 | static TL_help_termsOfService *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 658 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 659 | void serializeToStream(NativeByteBuffer *stream); |
| 660 | }; |
| 661 |
| 662 | class auth_Authorization : public TLObject { |
| 663 |
| 664 | public: |
| 665 | static auth_Authorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 666 | }; |
| 667 |
| 668 | class TL_auth_authorizationSignUpRequired : public auth_Authorization { |
| 669 |
| 670 | public: |
| 671 | static const uint32_t constructor = 0x44747e9a; |
| 672 |
| 673 | int32_t flags; |
| 674 | std::unique_ptr<TL_help_termsOfService> terms_of_service; |
| 675 |
| 676 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 677 | void serializeToStream(NativeByteBuffer *stream); |
| 678 | }; |
| 679 |
| 680 | class TL_auth_authorization : public auth_Authorization { |
| 681 |
| 682 | public: |
| 683 | static const uint32_t constructor = 0xcd050916; |
| 684 |
| 685 | int32_t flags; |
| 686 | int32_t tmp_sessions; |
| 687 | std::unique_ptr<User> user; |
| 688 |
| 689 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 690 | void serializeToStream(NativeByteBuffer *stream); |
| 691 | }; |
| 692 |
| 693 | class TL_auth_exportedAuthorization : public TLObject { |
| 694 |
| 695 | public: |
| 696 | static const uint32_t constructor = 0xdf969c2d; |
| 697 |
| 698 | int32_t id; |
| 699 | std::unique_ptr<ByteArray> bytes; |
| 700 |
| 701 | static TL_auth_exportedAuthorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 702 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 703 | }; |
| 704 |
| 705 | class TL_auth_exportAuthorization : public TLObject { |
| 706 |
| 707 | public: |
| 708 | static const uint32_t constructor = 0xe5bfffcd; |
| 709 |
| 710 | int32_t dc_id; |
| 711 |
| 712 | bool isNeedLayer(); |
| 713 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 714 | void serializeToStream(NativeByteBuffer *stream); |
| 715 | }; |
| 716 |
| 717 | class TL_auth_importAuthorization : public TLObject { |
| 718 |
| 719 | public: |
| 720 | static const uint32_t constructor = 0xe3ef9613; |
| 721 |
| 722 | int32_t id; |
| 723 | std::unique_ptr<ByteArray> bytes; |
| 724 |
| 725 | bool isNeedLayer(); |
| 726 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 727 | void serializeToStream(NativeByteBuffer *stream); |
| 728 | }; |
| 729 |
| 730 | class TL_updatesTooLong : public TLObject { |
| 731 |
| 732 | public: |
| 733 | static const uint32_t constructor = 0xe317af7e; |
| 734 |
| 735 | void serializeToStream(NativeByteBuffer *stream); |
| 736 | }; |
| 737 |
| 738 | #endif |
| 739 |