Releases: justdmitry/NetTelegramBotApi
v7.0.0
Deep internal refactoring related to [de]serialization and writing new request and data classes without overhead (automatic snake_case naming, automatic form file uploading, types like IntegerOrString and InputFileOrString).
Existing (old) request and data classes should remain, but feel free to open PR or issue when you find something missed.
v5.1: net6.0
TargetFramework updated to net6.0.
v5.0
- TargetFramework now only
net5.0, all previous frameworks removed Newtonsoft.Jsonreplaced withSystem.Text.JsonITelegramBotinterface added for tests
v4.2.0
Extensions method added to string: MarkdownEncode(this string value).
Use it when building markdown message from parts, obtained from "unsafe" sources:
new SendMessage(message.Chat.Id, "Hello, " + message.From.Username?.MarkdownEncode() + "!")
{
ParseMode = SendMessage.ParseModeEnum.Markdown
}
v4.1.0
v.4.0.0: Big update
Telegram API updated up to v2.3 (November 21, 2016). Message editing, games - everything should work except inline mode (see below).
Breaking changes (compared to 3.8.1):
MakeRequestAsyncnow throwsBotRequestExceptionif non-Ok response is received from server.- Typo fixed on
Contacttype:PhoneNumberwasPhoneNumbet ReplyKeyboardHiderenamed toReplyKeyboardRemove(when it had been renamed in API???)- Breaking changes in API 2.3:
- Parameter
EditMessagereplaced withDisableEditMessageinSetGameScore - In
ReplyKeyboardRemove:HideKeyboardrenamed toRemoveKeyboard
- Parameter
Inline mode
Inline mode needs a lot of new classes to be created. Please make PR if you wish to help.
Telegram API v2.1
Many changes to Telegram API added (up to v2.1)
v.3.8.1: netstandard1.3
Upgraded to .NET Core 1.0.0 and netstandard1.3