Telegram.Bot 错误

Telegram.Bot error

我正在使用 Telegram.Bot 软件包 found here

发生此错误,我的机器人失败了:

Error converting value "supergroup" to type 'Telegram.Bot.Types.ChatType'.
Path 'result[37].message.chat.type', line 39, position 316.

如何诊断和解决此问题?

此库目前不支持 supergroup 聊天类型。
你应该去 github 并创建问题,或者找另一个库。

这是调用 API、更新 DLL 和 VS 到 Vs 2015 的错误

或在 C# 中使用此代码

  int offset = 0;
            while (true)
            {
            TryAgain:
                  try{
                Telegram.Bot.Types.Update[] updates = bot.GetUpdates(offset).Result;
                foreach (var update in updates)
                {
.. . . .. 
}
}

     catch (Exception ef)
            {
                Debug.WriteLine(ef.Message);
                if (ef.Message.Contains("Telegram.Bot.Types"))
                {
                    goto TryAgain; 
                }
            }