I've created a Telegram Bot using C# and I want to see who is using my bot when sending message.
I can get when people send a message to my bot in private chat but in the Groups, I can't get Username who is using Bot and it's return the GroupName.
The method I use is
var me = Bot.GetChatAsync(e.Message.Chat.Id).Result;
varis only necessary when dealing with anonymous types... try to use explicit type instead ofvar. (IDE0008) - Yousha Aleayoub.ResultThe code will get error... - Muaath