Skip to content

Commit 10f18dc

Browse files
committed
Fix IsServiceMessage for Gift & UniqueGift (true)
1 parent 270427e commit 10f18dc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Telegram.Bot/Extend.Types.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public partial class Message
5757

5858
/// <summary><see langword="true"/> if it's a service message, <see langword="false"/> if it's a content message</summary>
5959
[JsonIgnore]
60-
public bool IsServiceMessage => this switch
60+
public bool IsServiceMessage => this switch // see https://github.com/tdlib/td/blob/master/td/telegram/MessageContentType.cpp#L506
6161
{
6262
{ Text: { } } or { Caption: { } } or { Photo: { } } or { Video: { } } or { Document: { } } or { Sticker: { } } or
6363
{ Animation: { } } or { Audio: { } } or { Voice: { } } or { Poll: { } } or { Dice: { } } or { Checklist: { } } or
6464
{ Game: { } } or { Location: { } } or { PaidMedia: { } } or { Story: { } } or { VideoNote: { } } or { Contact: { } } or
65-
{ Venue: { } } or { Invoice: { } } or { Giveaway: { } } or { GiveawayWinners: { } } or { Gift: { } } or { UniqueGift: { } }
65+
{ Venue: { } } or { Invoice: { } } or { Giveaway: { } } or { GiveawayWinners: { } }
6666
=> false,
6767
_ => true
6868
};

0 commit comments

Comments
 (0)