2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Initial starref setup section implementation.

This commit is contained in:
John Preston
2024-11-28 11:39:05 +04:00
parent a6bfd35f1a
commit 1e15764bb9
17 changed files with 896 additions and 21 deletions

View File

@@ -19,6 +19,16 @@ struct BotCommand;
struct BusinessDetails;
} // namespace Data
struct StarRefProgram {
TimeId endDate = 0;
ushort commission = 0;
uint8 durationMonths = 0;
friend inline constexpr bool operator==(
StarRefProgram,
StarRefProgram) = default;
};
struct BotInfo {
BotInfo();
@@ -44,6 +54,8 @@ struct BotInfo {
ChatAdminRights groupAdminRights;
ChatAdminRights channelAdminRights;
StarRefProgram starRefProgram;
int version = 0;
int descriptionVersion = 0;
int activeUsers = 0;