mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Update to Telegram Bot Framework 2.0
This commit is contained in:
@@ -23,7 +23,8 @@ public class UserJoinHandler : BotEventHandler
|
||||
_combotClient = combotClient;
|
||||
}
|
||||
|
||||
[Message(InChat.Public, MessageFlag.HasNewChatMembers)]
|
||||
[InChat(InChat.Public)]
|
||||
[Message(MessageFlag.HasNewChatMembers)]
|
||||
public async Task OnUserJoined()
|
||||
{
|
||||
// var canKickMembers = (await Bot.GetChatMemberAsync(Chat, (await Bot.GetMeAsync()).Id)).CanRestrictMembers == true;
|
||||
|
||||
Reference in New Issue
Block a user