如何通过c#将消息从超级组或频道跳过到机器人?

如何通过c#将消息从超级组或频道跳过到机器人?,c#,telegram-bot,C#,Telegram Bot,我想跳过c#从超级组或频道的更新 旧电报机器人11.3 foreach (var update in updates) { offset = update.Id + 1; if (update.Message.Chat.Type.GetType().ToString() != "Supergroup" || update.Message.Chat.Type.ToString() != "Channel") //if (update.Messag

我想跳过c#从超级组或频道的更新 旧电报机器人11.3

  foreach (var update in updates)
    {

      offset = update.Id + 1;

      if (update.Message.Chat.Type.GetType().ToString() != "Supergroup" || update.Message.Chat.Type.ToString() != "Channel")
      //if (update.Message.Chat.Type.ToString() != Supergroup || update.Message.Chat.Type.ToString() != "Channel")
         {

你在用什么c#库?我的库是telegram.bot
foreach(更新中的变量更新){if(update.Type==UpdateType.ChannelPost | | update.Type==UpdateType.EditedChannelPost | | update.Type==UpdateType.EditedMessage | update.Type==UpdateType.UnknownUpdateType){继续;}否则{…}