Skip to content

Commit

Permalink
Реализованы поля для "Новые поля для Chat #22"
Browse files Browse the repository at this point in the history
  • Loading branch information
rareMaxim committed Jun 30, 2017
1 parent 536d695 commit 8272355
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions Source/TelegAPi.Types.pas
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,24 @@ TtgChatMember = class
destructor Destroy; override;
end;

/// <summary>
/// This object represents a chat photo.
/// </summary>
TtgChatPhoto = class
/// <summary>
/// Unique file identifier of small (160x160) chat photo. This file_id
/// can be used only for photo download.
/// </summary>
[Alias('small_file_id')]
SmallFileId: string;
/// <summary>
/// Unique file identifier of big (640x640) chat photo. This file_id can
/// be used only for photo download.
/// </summary>
[Alias('big_file_id')]
BigFileId: string;
end;

/// <summary>
/// This object represents a chat.
/// </summary>
Expand Down Expand Up @@ -195,6 +213,26 @@ TtgChat = class
/// </summary>
[Alias('all_members_are_administrators')]
AllMembersAreAdministrators: Boolean;
/// <summary>
/// Optional. Chat photo. Returned only in <see cref="TelegAPI.Bot|TTelegramBot.GetChat(TValue)">
/// getChat</see>.
/// </summary>
[Alias('photo')]
Photo: TtgChatPhoto;
/// <summary>
/// Optional. Description, for supergroups and channel chats. Returned
/// only in <see cref="TelegAPI.Bot|TTelegramBot.GetChat(TValue)">getChat</see>
/// .
/// </summary>
[Alias('description')]
Description: string;
/// <summary>
/// Optional. Chat invite link, for supergroups and channel chats.
/// Returned only in <see cref="TelegAPI.Bot|TTelegramBot.GetChat(TValue)">
/// getChat</see>.
/// </summary>
[Alias('invite_link')]
InviteLink: string;
end;

/// <summary>
Expand Down

0 comments on commit 8272355

Please sign in to comment.