Eptagone / Telegram.BotAPI

Telegram Bot API NET. One of the most complete libraries available to interact with the Telegram Bot API.
MIT License
150 stars 22 forks source link

ObjectDisposedException: Cannot access a disposed object. #34

Open ScarletBlanks opened 11 months ago

ScarletBlanks commented 11 months ago
        var botToken = "tokenID...";
        bot = new BotClient(botToken);
       long chatId = -XXXXXX;
       bot.SendMessage(chatId, "Test");

ObjectDisposedException: Cannot access a disposed object. Object name: 'System.Net.Http.StreamContent'.

Eptagone commented 8 months ago

Hi, mmm. Do you have a reproduction repo?

thisisAmirHossein commented 8 months ago

following

haris-dautovic commented 2 weeks ago

Error from telegram API: "Bad Request: group chat was upgraded to a supergroup chat". This means your chat has been upgraded to super chat and therefore you have to find and provide new chatId.