【发布时间】:2018-11-25 00:06:49
【问题描述】:
当我使用 WebHook 方法时,此方法发送旧更新。我怎样才能防止这种情况发生?
else if (text != null && text.Equals("متن ارسال شود") && (update.Message.Chat.Id == WebApiApplication.chatId1 || update.Message.Chat.Id == WebApiApplication.chatId2)) {
WebApiApplication.SenderCount = 0;
int i = 0;
String[] Array;
TelBotEntities1 db = new TelBotEntities1();
int count = db.SenderBots.Count();
Array = new string[count];
foreach(var dbItem in db.SenderBots) {
Array[i] = dbItem.ChannelId;
i++;
}
【问题讨论】:
-
您好,请花点时间通过welcome tour 了解您的方法,阅读如何创建minimal reproducible example 示例并查看How to Ask,这样您就有机会获得反馈和有用的答案。
-
我应该如何使用偏移量或其他任何东西来防止旧更新?