2

I'm working on an application that integrates with Telegram and I had the problem to find a way how to receive messages from groups using Telegram Bot API

My code so far for sending a message to a group or channel my bot already admin on it. any suggestions?

static async Task<Telegram.Bot.Types.Message> DoSomethingAsync()
{
    var Bot = new Telegram.Bot.Api("api_token");

    return await Bot.SendTextMessage("chatid","Hello");
}
Roham Rafii
  • 2,929
  • 7
  • 35
  • 49
Adam Kim
  • 63
  • 2
  • 6
  • can you please know me how can send message in the group on telegram but using c#? i want also need this so can you please give me some idea. – Edit Aug 31 '17 at 06:52

1 Answers1

2

By default, your bot can only see messages in /command@YourBotName format, or reply to its message.

To receive all messages, please goto @BotFather, and turn off privacy mode, then re-invite your bot to group.

/setprivacy — Set which messages your bot will receive when added to a group. With privacy mode disabled, the bot will receive all messages.

Sean Wei
  • 7,433
  • 1
  • 19
  • 39