All notable changes to telebot
will be documented in this file
- Initial release
- Added useful Laravel commands for bot development
- Docs updated, fixed some typos
- Added
callHandler
method to run single update handler - Updated and improved docs
- Added
TelegramChannel
for Laravel's Notifications - Refactored method call system
- Updated docs
- Fixed phpdoc for
InlineQueryResult
- Added helpers functions to
Update
object to get some parameters without validation - Add reply functionality to
UpdateHandler
- firing bot methods on class instance will specify default values for parameters using incomingUpdate
-chat_id
,user_id
,message_id
,callback_query_id
,inline_message_id
,inline_query_id
,shipping_query_id
,pre_checkout_query_id
. So the developers now not required to validate bunch of parameters to fire specific bot methods.
- Fixed phpdoc for standalone core library
- Added automatic route generation for webhook in Laravel's service provider
- Bot API v5.0
- Updated dev package compatibility
- Rate limit feature was droped as it is not working accurate with webhook requests - it's not comfortable to store last request time from already dead php process without any data storage. In case you want to slow down your bot requests you should figure it out by yourself.
- Droped
spatie/guzzle-rate-limiter-middleware
dependence. - Added ability to change Bot API URL (in case you have self hosted bot api)
- PHP 8 is now supported
WeStacks\TeleBot\Laravel\TelegramMessage
renamed toWeStacks\TeleBot\Laravel\TelegramNotification
.- Telegram notification now can be sent only using
WeStacks\TeleBot\Laravel\TelegramNotification
object. Old array system is dropped - When sending notification using
WeStacks\TeleBot\Laravel\TelegramNotification
, methods could be chained to send multiple messages in a row
- Added
getConfig()
method to theWeStacks\TeleBot\TeleBot
instance. It will return the passsed to the constructor config. #8 - Added ability to change
WeStacks\TeleBot\TeleBot
's config parameters "on the go" using get/set syntax.
TeleBot::getConfig()
now returns only parameters that is used for library initialization.- Added optional
name
parameter forTeleBot
initialization. It is used to sign incoming bot commands from public groups/chats (ex.:/start@CoolBot
). UpdateHandler::trigger()
function now acceptsTeleBot
instance as second argument (breaking change).- Added more details to the docs about
CommandHandler
usage.
- Updated Bot API to version 5.1
- Fix minor and major severity issues
- Updated Bot API to version 5.2
- Hotfix. Array of parameters is now has a default value as empty array when calling a bot method on UpdateHandler instance
- Updated Bot API to version 5.3
- Added logger to log application errors to selected Telegram chat.
- Updated Bot API to version 5.4
- Updated Bot API to version 5.5
- Updated Bot API to version 6.0
- Refactored and optimized codebase. Updated all methods and objects along with latest Bot API. Some classes changed namespaces such as
CommandHandler
,UpdateHandler
. Be aware during migration to the newer version. - Added customizable Kernel for handling updates and registering bot commands
- Removed various library exceptions. Now only using
TeleBotException
- Version
1.x
is dropped out of official support. Hovever pull requests are welcome to the1.x
branch.
- Updated Bot API to version 6.1
- Breaking.
api_url
inside bot config now is a template string with{TOKEN}
and{METHOD}
placeholder (ex.:https://api.telegram.org/bot{TOKEN}/{METHOD}
). This is useful when you have self hosted bot api or using Telegram's official testing Bot API. - Created the view
telebot::webapp
which might be extended to build Telegram web apps easier. - Fixed support for PHP 7.4
- Added ability to fake requests to Telegram bot api using
$bot->fake()->sendMessage(...)
- Added new handler type
RequestInputHandler
which implements simplest state machine to request user input (e.g. #44). More details in documentation. - Increased security of Laravel's webhook with stricter validation and implemented in Bot API v6.1
secret_token
feature.
- Updated Bot API to version 6.2
- Updated Bot API to version 6.3
- Dropped support for PHP 7.4
- Webhook request now uses raw request parameters to prevent data changes from Laravel (fix #60)
- Updated Bot API to version 6.4
- Added Laravel 10 support
- Updated Bot API to version 6.5
- Updated Bot API to version 6.6
- Refactor codebase
- Add callback handler
- Add middleware to authorize web app requests.
- Updated docs
- Updated Bot API to version 6.7
- Laravel support migrated to separate package
- Updated Bot API to version 6.8
- Updated Bot API to version 6.9
- Updated Bot API to version 7.1
- Updated Bot API to version 7.2