UserId type in the Contact object changed to Long (was String - typo in API docs). Caption and Duration optional fields have been added to the SendVideo request.The Caption field has been removed from the Video object and added to the Message object instead.Changes in Telegram API defined as July 2015 implemented (issue #7):.8 - API changes 'August 15, 2015'Ĭhanges in Telegram API defined as Augimplemented (issue #13).Īll real changes were already implemented in 6, only some documenation/comments are updated in this version. Old demo app ('classic' console project) also available, but Attention! Now it grabs package from nuget! (because old-style. New demo console app added ( TelegramBotDemo-vNext) for testing under dnx451 runtime. NuGet package now targets multiple runtimes: net45, dnx45, dnx50 and dnxcore50. Project converted to Visual Studio 2015 and new project type ( xproj). Use WebProxy property when creating bot (see issue #22 for sample).Bots can now download files and media sent by users, use GetFile request and File object (run demo project and send him a picture!).Changes in Telegram API defined as Septemimplemented (issue #21):.Added ParseMode field to SendMessage request for simple markdown markup (see FAQ for details).Changes in Telegram API defined as Septemimplemented (issue #20):.Added support for uploading certificates in SetWebhook.Changes in Telegram API defined as Augimplemented (issue #19):.Inline mode needs a lot of new classes to be created. In ReplyKeyboardRemove: HideKeyboard renamed to RemoveKeyboard.Parameter EditMessage replaced with DisableEditMessage in SetGameScore.ReplyKeyboardHide renamed to ReplyKeyboardRemove (when it had been renamed in API?).Typo fixed on Contact type: PhoneNumber was PhoneNumbet.MakeRequestAsync now throws BotRequestException if non-Ok response is received from server.Message editing, games - everything should work except inline mode (see below). Telegram API updated up to v2.3 (November 21, 2016). See TelegramBotDemo project for more samples. Var me = await bot.MakeRequestAsync(new GetMe()) Ĭonsole.WriteLine("Me: me.FirstName, me.Username) Usage var bot = new TelegramBot(accessToken) C# client library for building Telegram bot ( )Ĭontains strongly-types request and response classes, and transport class for sending requests and receiving results.
0 Comments
Leave a Reply. |