Skip to content

Commit ac5881c

Browse files
committed
Adding missing IsGroup and IsChannel property to DeviceSession
1 parent a29da1a commit ac5881c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

TelegramBotBase/Interfaces/IDeviceSession.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ public interface IDeviceSession : IDeviceSessionMethods
1515
{
1616
MessageClient Client => ActiveForm.Client;
1717

18+
/// <summary>
19+
/// Returns if the messages is posted within a group.
20+
/// </summary>
21+
bool IsGroup { get; }
22+
23+
/// <summary>
24+
/// Returns if the messages is posted within a channel.
25+
/// </summary>
26+
bool IsChannel { get; }
27+
1828
int LastMessageId => LastMessage?.MessageId ?? -1;
1929

2030
Message LastMessage { get; set; }

0 commit comments

Comments
 (0)