I want my bot to send a message when it detect documents is sent in a chat.
The code works for chat to the bot directly, but if I add the bot into a group, the bot has no response if I sent a document in the group.
static void Main(string[] args)
{
bot.OnMessage += Bot_OnMessage;
bot.OnMessageEdited += Bot_OnMessage;
bot.StartReceiving();
}
private static void Bot_OnMessage(object sender, Telegram.Bot.Args.MessageEventArgs e)
{
Console.WriteLine(e.Message.Type);
}
Why the bot has no response when I send a file in a group? Thanks!