Skip to content

Migrating from 0.35

Armando Lüscher edited this page Nov 29, 2016 · 4 revisions

As of 0.36, the entities namespaces have changed and might need to be adjusted in your custom commands.

Main changes:

  • All InlineQuery classes are now in the namespace Longman\TelegramBot\Entities\InlineQuery\*.
  • All InputMessageContent classes are now in the namespace Longman\TelegramBot\Entities\InputMessageContent\*
  • Keyboard

KeyboardMarkup and InlineKeyboardMarkup are now called Keyboard and InlineKeyboard

There are new helper classes and methods to make keyboard usage easier: KeyboardButton and InlineKeyboardButton

ForceReply and ReplyKeyboardHide have been replaced by the static Keyboard methods Keyboard::forceReply() and Keyboard::hide().

Best check the examples and existing commands to see proper usage.