| 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 | void serializeToStream(NativeByteBuffer *stream); |
| 210 | }; |
| 211 |
| 212 | class TL_userStatusEmpty : public UserStatus { |
| 213 |
| 214 | public: |
| 215 | static const uint32_t constructor = 0x9d05049; |
| 216 |
| 217 | void serializeToStream(NativeByteBuffer *stream); |
| 218 | }; |
| 219 |
| 220 | class TL_userStatusLastMonth : public UserStatus { |
| 221 |
| 222 | public: |
| 223 | static const uint32_t constructor = 0x77ebc742; |
| 224 |
| 225 | void serializeToStream(NativeByteBuffer *stream); |
| 226 | }; |
| 227 |
| 228 | class TL_userStatusOnline : public UserStatus { |
| 229 |
| 230 | public: |
| 231 | static const uint32_t constructor = 0xedb93949; |
| 232 |
| 233 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 234 | void serializeToStream(NativeByteBuffer *stream); |
| 235 | }; |
| 236 |
| 237 | class TL_userStatusRecently : public UserStatus { |
| 238 |
| 239 | public: |
| 240 | static const uint32_t constructor = 0xe26f42f1; |
| 241 |
| 242 | void serializeToStream(NativeByteBuffer *stream); |
| 243 | }; |
| 244 |
| 245 | class FileLocation : public TLObject { |
| 246 |
| 247 | public: |
| 248 | int64_t volume_id; |
| 249 | int32_t local_id; |
| 250 |
| 251 | static FileLocation *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 252 | }; |
| 253 |
| 254 | class TL_fileLocationToBeDeprecated : public FileLocation { |
| 255 |
| 256 | public: |
| 257 | static const uint32_t constructor = 0xbc7fc6cd; |
| 258 |
| 259 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 260 | void serializeToStream(NativeByteBuffer *stream); |
| 261 | }; |
| 262 |
| 263 | class UserProfilePhoto : public TLObject { |
| 264 |
| 265 | public: |
| 266 | int32_t flags; |
| 267 | bool has_video; |
| 268 | int64_t photo_id; |
| 269 | std::unique_ptr<ByteArray> stripped_thumb; |
| 270 | int32_t dc_id; |
| 271 |
| 272 | static UserProfilePhoto *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 273 | }; |
| 274 |
| 275 | class TL_userProfilePhotoEmpty : public UserProfilePhoto { |
| 276 |
| 277 | public: |
| 278 | static const uint32_t constructor = 0x4f11bae1; |
| 279 |
| 280 | void serializeToStream(NativeByteBuffer *stream); |
| 281 | }; |
| 282 |
| 283 | class TL_userProfilePhoto : public UserProfilePhoto { |
| 284 |
| 285 | public: |
| 286 | static const uint32_t constructor = 0x82d1f706; |
| 287 |
| 288 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 289 | void serializeToStream(NativeByteBuffer *stream); |
| 290 | }; |
| 291 |
| 292 | class TL_restrictionReason : public TLObject { |
| 293 |
| 294 | public: |
| 295 | static const uint32_t constructor = 0xd072acb4; |
| 296 |
| 297 | std::string platform; |
| 298 | std::string reason; |
| 299 | std::string text; |
| 300 |
| 301 | static TL_restrictionReason *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 302 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 303 | void serializeToStream(NativeByteBuffer *stream); |
| 304 | }; |
| 305 |
| 306 | class TL_username : public TLObject { |
| 307 |
| 308 | public: |
| 309 | static const uint32_t constructor = 0xb4073647; |
| 310 | int32_t flags; |
| 311 | bool editable; |
| 312 | bool active; |
| 313 | std::string username; |
| 314 |
| 315 | static TL_username *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 316 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 317 | void serializeToStream(NativeByteBuffer *stream); |
| 318 | }; |
| 319 |
| 320 | class User : public TLObject { |
| 321 |
| 322 | public: |
| 323 | int64_t id; |
| 324 | std::string first_name; |
| 325 | std::string last_name; |
| 326 | std::string username; |
| 327 | int64_t access_hash; |
| 328 | std::string phone; |
| 329 | std::unique_ptr<UserProfilePhoto> photo; |
| 330 | std::unique_ptr<UserStatus> status; |
| 331 | int32_t flags; |
| 332 | int32_t flags2; |
| 333 | int32_t bot_info_version; |
| 334 | std::vector<std::unique_ptr<TL_restrictionReason>> restriction_reason; |
| 335 | std::string bot_inline_placeholder; |
| 336 | std::string lang_code; |
| 337 | std::vector<std::unique_ptr<TL_username>> usernames; |
| 338 | int32_t stories_max_id; |
| 339 | int32_t emojiStatusMagic; |
| 340 | int64_t emojiStatusDocumentId; |
| 341 | int32_t emojiStatusUntil; |
| 342 | int32_t color; |
| 343 | int64_t background_emoji_id; |
| 344 |
| 345 | static User *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 346 | }; |
| 347 |
| 348 | class TL_userEmpty : public User { |
| 349 |
| 350 | public: |
| 351 | static const uint32_t constructor = 0xd3bc4b7a; |
| 352 |
| 353 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 354 | void serializeToStream(NativeByteBuffer *stream); |
| 355 | }; |
| 356 |
| 357 | class TL_user : public User { |
| 358 |
| 359 | public: |
| 360 | static const uint32_t constructor = 0xeb602f25; |
| 361 |
| 362 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 363 | void serializeToStream(NativeByteBuffer *stream); |
| 364 | }; |
| 365 |
| 366 | class InputPeer : public TLObject { |
| 367 |
| 368 | public: |
| 369 | int64_t user_id; |
| 370 | int64_t chat_id; |
| 371 | int64_t channel_id; |
| 372 | int64_t access_hash; |
| 373 |
| 374 | static InputPeer *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 375 | }; |
| 376 |
| 377 | class TL_inputPeerSelf : public InputPeer { |
| 378 |
| 379 | public: |
| 380 | static const uint32_t constructor = 0x7da07ec9; |
| 381 |
| 382 | void serializeToStream(NativeByteBuffer *stream); |
| 383 | }; |
| 384 |
| 385 | class TL_inputPeerUser : public InputPeer { |
| 386 |
| 387 | public: |
| 388 | static const uint32_t constructor = 0xdde8a54c; |
| 389 |
| 390 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 391 | void serializeToStream(NativeByteBuffer *stream); |
| 392 | }; |
| 393 |
| 394 | class TL_inputPeerChat : public InputPeer { |
| 395 |
| 396 | public: |
| 397 | static const uint32_t constructor = 0x35a95cb9; |
| 398 |
| 399 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 400 | void serializeToStream(NativeByteBuffer *stream); |
| 401 | }; |
| 402 |
| 403 | class TL_inputPeerUserFromMessage : public InputPeer { |
| 404 |
| 405 | public: |
| 406 | static const uint32_t constructor = 0xa87b0a1c; |
| 407 |
| 408 | std::unique_ptr<InputPeer> peer; |
| 409 | int32_t msg_id; |
| 410 |
| 411 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 412 | void serializeToStream(NativeByteBuffer *stream); |
| 413 | }; |
| 414 |
| 415 | class TL_inputPeerChannelFromMessage : public InputPeer { |
| 416 |
| 417 | public: |
| 418 | static const uint32_t constructor = 0xbd2a0840; |
| 419 |
| 420 | std::unique_ptr<InputPeer> peer; |
| 421 | int32_t msg_id; |
| 422 |
| 423 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 424 | void serializeToStream(NativeByteBuffer *stream); |
| 425 | }; |
| 426 |
| 427 | class TL_inputPeerChannel : public InputPeer { |
| 428 |
| 429 | public: |
| 430 | static const uint32_t constructor = 0x27bcbbfc; |
| 431 |
| 432 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 433 | void serializeToStream(NativeByteBuffer *stream); |
| 434 | }; |
| 435 |
| 436 | class TL_inputPeerEmpty : public InputPeer { |
| 437 |
| 438 | public: |
| 439 | static const uint32_t constructor = 0x7f3b18ea; |
| 440 |
| 441 | void serializeToStream(NativeByteBuffer *stream); |
| 442 | }; |
| 443 |
| 444 | class InputUser : public TLObject { |
| 445 |
| 446 | public: |
| 447 | int64_t user_id; |
| 448 | int64_t access_hash; |
| 449 |
| 450 | static InputUser *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 451 | }; |
| 452 |
| 453 | class TL_inputUserSelf : public InputUser { |
| 454 |
| 455 | public: |
| 456 | static const uint32_t constructor = 0xf7c1b13f; |
| 457 |
| 458 | void serializeToStream(NativeByteBuffer *stream); |
| 459 | }; |
| 460 |
| 461 | class TL_inputUser : public InputUser { |
| 462 |
| 463 | public: |
| 464 | static const uint32_t constructor = 0xf21158c6; |
| 465 |
| 466 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 467 | void serializeToStream(NativeByteBuffer *stream); |
| 468 | }; |
| 469 |
| 470 | class TL_inputUserEmpty : public InputUser { |
| 471 |
| 472 | public: |
| 473 | static const uint32_t constructor = 0xb98886cf; |
| 474 |
| 475 | void serializeToStream(NativeByteBuffer *stream); |
| 476 | }; |
| 477 |
| 478 | class TL_inputUserFromMessage : public InputUser { |
| 479 |
| 480 | public: |
| 481 | static const uint32_t constructor = 0x1da448e2; |
| 482 |
| 483 | std::unique_ptr<InputPeer> peer; |
| 484 | int32_t msg_id; |
| 485 |
| 486 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 487 | void serializeToStream(NativeByteBuffer *stream); |
| 488 | }; |
| 489 |
| 490 | class MessageEntity : public TLObject { |
| 491 |
| 492 | public: |
| 493 | int32_t offset; |
| 494 | int32_t length; |
| 495 | std::string url; |
| 496 | std::string language; |
| 497 |
| 498 | static MessageEntity *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 499 | }; |
| 500 |
| 501 | class TL_messageEntityTextUrl : public MessageEntity { |
| 502 |
| 503 | public: |
| 504 | static const uint32_t constructor = 0x76a6d327; |
| 505 |
| 506 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 507 | void serializeToStream(NativeByteBuffer *stream); |
| 508 | }; |
| 509 |
| 510 | class TL_messageEntityBotCommand : public MessageEntity { |
| 511 |
| 512 | public: |
| 513 | static const uint32_t constructor = 0x6cef8ac7; |
| 514 |
| 515 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 516 | void serializeToStream(NativeByteBuffer *stream); |
| 517 | }; |
| 518 |
| 519 | class TL_messageEntityEmail : public MessageEntity { |
| 520 |
| 521 | public: |
| 522 | static const uint32_t constructor = 0x64e475c2; |
| 523 |
| 524 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 525 | void serializeToStream(NativeByteBuffer *stream); |
| 526 | }; |
| 527 |
| 528 | class TL_messageEntityPre : public MessageEntity { |
| 529 |
| 530 | public: |
| 531 | static const uint32_t constructor = 0x73924be0; |
| 532 |
| 533 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 534 | void serializeToStream(NativeByteBuffer *stream); |
| 535 | }; |
| 536 |
| 537 | class TL_messageEntityUnknown : public MessageEntity { |
| 538 | public: |
| 539 | static const uint32_t constructor = 0xbb92ba95; |
| 540 |
| 541 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 542 | void serializeToStream(NativeByteBuffer *stream); |
| 543 | }; |
| 544 |
| 545 | class TL_messageEntityUrl : public MessageEntity { |
| 546 |
| 547 | public: |
| 548 | static const uint32_t constructor = 0x6ed02538; |
| 549 |
| 550 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 551 | void serializeToStream(NativeByteBuffer *stream); |
| 552 | }; |
| 553 |
| 554 | class TL_messageEntityItalic : public MessageEntity { |
| 555 |
| 556 | public: |
| 557 | static const uint32_t constructor = 0x826f8b60; |
| 558 |
| 559 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 560 | void serializeToStream(NativeByteBuffer *stream); |
| 561 | }; |
| 562 |
| 563 | class TL_messageEntityMention : public MessageEntity { |
| 564 |
| 565 | public: |
| 566 | static const uint32_t constructor = 0xfa04579d; |
| 567 |
| 568 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 569 | void serializeToStream(NativeByteBuffer *stream); |
| 570 | }; |
| 571 |
| 572 | class TL_messageEntityMentionName : public MessageEntity { |
| 573 |
| 574 | public: |
| 575 | static const uint32_t constructor = 0xdc7b1140; |
| 576 |
| 577 | int64_t user_id; |
| 578 |
| 579 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 580 | void serializeToStream(NativeByteBuffer *stream); |
| 581 | }; |
| 582 |
| 583 | class TL_inputMessageEntityMentionName : public MessageEntity { |
| 584 |
| 585 | public: |
| 586 | static const uint32_t constructor = 0x208e68c9; |
| 587 |
| 588 | std::unique_ptr<InputUser> user_id; |
| 589 |
| 590 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 591 | void serializeToStream(NativeByteBuffer *stream); |
| 592 | }; |
| 593 |
| 594 | class TL_messageEntityCashtag : public MessageEntity { |
| 595 |
| 596 | public: |
| 597 | static const uint32_t constructor = 0x4c4e743f; |
| 598 |
| 599 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 600 | void serializeToStream(NativeByteBuffer *stream); |
| 601 | }; |
| 602 |
| 603 | class TL_messageEntityBold : public MessageEntity { |
| 604 |
| 605 | public: |
| 606 | static const uint32_t constructor = 0xbd610bc9; |
| 607 |
| 608 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 609 | void serializeToStream(NativeByteBuffer *stream); |
| 610 | }; |
| 611 |
| 612 | class TL_messageEntityHashtag : public MessageEntity { |
| 613 |
| 614 | public: |
| 615 | static const uint32_t constructor = 0x6f635b0d; |
| 616 |
| 617 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 618 | void serializeToStream(NativeByteBuffer *stream); |
| 619 | }; |
| 620 |
| 621 | class TL_messageEntityCode : public MessageEntity { |
| 622 |
| 623 | public: |
| 624 | static const uint32_t constructor = 0x28a20571; |
| 625 |
| 626 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 627 | void serializeToStream(NativeByteBuffer *stream); |
| 628 | }; |
| 629 |
| 630 | class TL_messageEntityStrike : public MessageEntity { |
| 631 |
| 632 | public: |
| 633 | static const uint32_t constructor = 0xbf0693d4; |
| 634 |
| 635 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 636 | void serializeToStream(NativeByteBuffer *stream); |
| 637 | }; |
| 638 |
| 639 | class TL_messageEntityBlockquote : public MessageEntity { |
| 640 |
| 641 | public: |
| 642 | static const uint32_t constructor = 0x20df5d0; |
| 643 |
| 644 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 645 | void serializeToStream(NativeByteBuffer *stream); |
| 646 | }; |
| 647 |
| 648 | class TL_messageEntityUnderline : public MessageEntity { |
| 649 |
| 650 | public: |
| 651 | static const uint32_t constructor = 0x9c4e7e8b; |
| 652 |
| 653 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 654 | void serializeToStream(NativeByteBuffer *stream); |
| 655 | }; |
| 656 |
| 657 | class TL_messageEntityPhone : public MessageEntity { |
| 658 |
| 659 | public: |
| 660 | static const uint32_t constructor = 0x9b69e34b; |
| 661 |
| 662 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 663 | void serializeToStream(NativeByteBuffer *stream); |
| 664 | }; |
| 665 |
| 666 | class TL_dataJSON : public TLObject { |
| 667 |
| 668 | public: |
| 669 | static const uint32_t constructor = 0x7d748d04; |
| 670 |
| 671 | std::string data; |
| 672 |
| 673 | static TL_dataJSON *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 674 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 675 | void serializeToStream(NativeByteBuffer *stream); |
| 676 | }; |
| 677 |
| 678 | class TL_help_termsOfService : public TLObject { |
| 679 |
| 680 | public: |
| 681 | static const uint32_t constructor = 0x780a0310; |
| 682 |
| 683 | int32_t flags; |
| 684 | bool popup; |
| 685 | std::unique_ptr<TL_dataJSON> id; |
| 686 | std::string text; |
| 687 | std::vector<std::unique_ptr<MessageEntity>> entities; |
| 688 | int32_t min_age_confirm; |
| 689 |
| 690 | static TL_help_termsOfService *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 691 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 692 | void serializeToStream(NativeByteBuffer *stream); |
| 693 | }; |
| 694 |
| 695 | class auth_Authorization : public TLObject { |
| 696 |
| 697 | public: |
| 698 | static auth_Authorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 699 | }; |
| 700 |
| 701 | class TL_auth_authorizationSignUpRequired : public auth_Authorization { |
| 702 |
| 703 | public: |
| 704 | static const uint32_t constructor = 0x44747e9a; |
| 705 |
| 706 | int32_t flags; |
| 707 | std::unique_ptr<TL_help_termsOfService> terms_of_service; |
| 708 |
| 709 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 710 | void serializeToStream(NativeByteBuffer *stream); |
| 711 | }; |
| 712 |
| 713 | class TL_auth_authorization : public auth_Authorization { |
| 714 |
| 715 | public: |
| 716 | static const uint32_t constructor = 0x2ea2c0d4; |
| 717 |
| 718 | int32_t flags; |
| 719 | int32_t tmp_sessions; |
| 720 | int32_t otherwise_relogin_days; |
| 721 | std::unique_ptr<ByteArray> future_auth_token; |
| 722 | std::unique_ptr<User> user; |
| 723 |
| 724 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 725 | void serializeToStream(NativeByteBuffer *stream); |
| 726 | }; |
| 727 |
| 728 | class TL_auth_exportedAuthorization : public TLObject { |
| 729 |
| 730 | public: |
| 731 | static const uint32_t constructor = 0xb434e2b8; |
| 732 |
| 733 | int64_t id; |
| 734 | std::unique_ptr<ByteArray> bytes; |
| 735 |
| 736 | static TL_auth_exportedAuthorization *TLdeserialize(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 737 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 738 | }; |
| 739 |
| 740 | class TL_auth_exportAuthorization : public TLObject { |
| 741 |
| 742 | public: |
| 743 | static const uint32_t constructor = 0xe5bfffcd; |
| 744 |
| 745 | int32_t dc_id; |
| 746 |
| 747 | bool isNeedLayer(); |
| 748 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 749 | void serializeToStream(NativeByteBuffer *stream); |
| 750 | }; |
| 751 |
| 752 | class TL_auth_importAuthorization : public TLObject { |
| 753 |
| 754 | public: |
| 755 | static const uint32_t constructor = 0xa57a7dad; |
| 756 |
| 757 | int64_t id; |
| 758 | std::unique_ptr<ByteArray> bytes; |
| 759 |
| 760 | bool isNeedLayer(); |
| 761 | TLObject *deserializeResponse(NativeByteBuffer *stream, uint32_t constructor, int32_t instanceNum, bool &error); |
| 762 | void serializeToStream(NativeByteBuffer *stream); |
| 763 | }; |
| 764 |
| 765 | class TL_updatesTooLong : public TLObject { |
| 766 |
| 767 | public: |
| 768 | static const uint32_t constructor = 0xe317af7e; |
| 769 |
| 770 | void serializeToStream(NativeByteBuffer *stream); |
| 771 | }; |
| 772 |
| 773 |
| 774 | class TL_reactionCustomEmoji : public Reaction { |
| 775 |
| 776 | public: |
| 777 | static const uint32_t constructor = 0x8935fc73; |
| 778 | int64_t document_id; |
| 779 |
| 780 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 781 | void serializeToStream(NativeByteBuffer *stream); |
| 782 | }; |
| 783 |
| 784 |
| 785 | class TL_reactionEmoji : public Reaction { |
| 786 |
| 787 | public: |
| 788 | static const uint32_t constructor = 0x1b2286b8; |
| 789 | std::string emoticon; |
| 790 |
| 791 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 792 | void serializeToStream(NativeByteBuffer *stream); |
| 793 | }; |
| 794 |
| 795 |
| 796 |
| 797 | class TL_reactionEmpty : public Reaction { |
| 798 |
| 799 | public: |
| 800 | static const uint32_t constructor = 0x79f5d419; |
| 801 |
| 802 | void readParams(NativeByteBuffer *stream, int32_t instanceNum, bool &error); |
| 803 | void serializeToStream(NativeByteBuffer *stream); |
| 804 | }; |
| 805 |
| 806 | #endif |
| 807 |