longman/telegram-bot
PHP Telegram bot
0.83.1
2.3M downloads/mo
#3885 most downloaded on Packagist
php-telegram-bot/core
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 7 months
Most releases are documented
notes for 56 of 79 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
79 releases · first in 2015
0 releases in the last 12 months
see the full history below
Release timeline
79 releases · Sep 2015 to May 2024Releases
latest 60 of 79-
0.83.130 May 2024Release notes
Open source →What's Changed
- FastFix to Critical Error. by @r3bers in #1467
- Make sure setCustomBotApiUri has an effect if Telegram object was already instantiated. by @TiiFuchs in #1296
- Update 0.82.0-0.83.0.sql by @r3bers in #1468
New Contributors
Full Changelog: 0.83.0...0.83.1
-
0.83.025 May 2024Release notes
Open source →Notes
- 📒 View file changes ∙ 📃 DB migration script
- ❗ PHP 8.1+ required!
- Last version with database support built in to the core.
Added
- Bot API 7.0 (@noplanman, @TiiFuchs) (#1459)
- Bot API 7.1 (@noplanman) (#1465)
Changed
- ❗ Various fields have been pluralised from "user" to "users".
Release notes
Open source →Notes
- [:ledger: View file changes][0.83.0] ∙ [:page_with_curl: DB migration script][0.83.0-sql-migration]
- [:exclamation:][0.83.0-bc-minimum-php-81] PHP 8.1+ required!
- Last version with database support built in to the core.
Added
- Bot API 7.0 (@noplanman, @TiiFuchs) (#1459)
- Bot API 7.1 (@noplanman) (#1465)
Changed
- [:exclamation:][0.83.0-bc-user-to-users] Various fields have been pluralised from "user" to "users".
Deprecated
Removed
Fixed
Security
-
0.82.026 Oct 2023Release notes
Open source →Notes
- 📒 View file changes ∙ 📃 DB migration script
- Really the last version that supports PHP 7! Only PHP 8 after this one.
Added
- Bot API 6.8, 6.9 (@noplanman) (#1418, #1427)
- Test against PHP 8.3 (@sergiy-petrov) (#1421)
Fixed
Release notes
Open source →Notes
- [:ledger: View file changes][0.82.0] ∙ [:page_with_curl: DB migration script][0.82.0-sql-migration]
- Really the last version that supports PHP 7! Only PHP 8 after this one.
Added
- Bot API 6.8, 6.9 (@noplanman) (#1418, #1427)
- Test against PHP 8.3 (@sergiy-petrov) (#1421)
Fixed
- Missing
thumbnail_urlrenaming. - Fix broken exception handling (@mlocati) (#1425)
-
0.81.027 May 2023Release notes
Open source →Notes
- 📒 View file changes ∙ 📃 DB migration script
- Last version that supports PHP 7.
Added
- Support dynamic Entity properties for newer PHP versions (@alesinicio, @TiiFuchs) (#1390)
- Bot API 6.4, 6.5, 6.6, 6.7 (@noplanman) (#1389)
Removed
- Keyboard validations (@noplanman) (#1395)
Fixed
Release notes
Open source →Notes
- [:ledger: View file changes][0.81.0] ∙ [:page_with_curl: DB migration script][0.81.0-sql-migration]
- Last version that supports PHP 7.
Added
- Support dynamic Entity properties for newer PHP versions (@alesinicio, @TiiFuchs) (#1390)
- Bot API 6.4, 6.5, 6.6, 6.7 (@noplanman) (#1389)
Removed
- Keyboard validations (@noplanman) (#1395)
Fixed
- Fixed a bug where new incoming updates are not correctly passed to the Command object after the first time when getUpdates is used. (@uspilot) (#1384)
-
0.80.009 Nov 2022Release notes
Open source →Notes
- [:ledger: View file changes][0.80.0] ∙ [:page_with_curl: DB migration script][0.80.0-sql-migration]
Added
- Bot API 6.3 (@TiiFuchs) (#1371)
Changed
- [:exclamation:][0.80.0-bc-commands-with-underscores] Commands can now contain underscores (
FooBarCommandis handled by/foo_bar). (@mlocati) (#1365)
-
0.79.004 Sep 2022Release notes
Open source →Notes
Added
Removed
VoiceChatXentities, useVideoChatXentities instead.all_members_are_administratorsproperty fromMessageentity. Database column still exists, but may be removed in the future.Request::getChatMembersCount(), useRequest::getChatMemberCount()instead.Request::kickChatMember(), useRequest::banChatMember()instead.
Release notes
Open source →Notes
- [:ledger: View file changes][0.79.0]
Added
- Bot API 6.2 (@OxMohsen) (#1350)
Removed
VoiceChatXentities, useVideoChatXentities instead.all_members_are_administratorsproperty fromMessageentity. Database column still exists, but may be removed in the future.Request::getChatMembersCount(), useRequest::getChatMemberCount()instead.Request::kickChatMember(), useRequest::banChatMember()instead.
-
0.78.003 Jul 2022Release notes
Open source →Notes
- 📒 View file changes ∙ 📃 DB migration script
- 64 bit PHP install required to handle files larger than 2GB!
Added
Release notes
Open source →Notes
- [:ledger: View file changes][0.78.0] ∙ [:page_with_curl: DB migration script][0.78.0-sql-migration]
- 64 bit PHP install required to handle files larger than 2GB!
Added
- Bot API 6.1 (@jyxjjj, @OxMohsen, @noplanman) (#1333, #1338, #1339)
- New Update field helpers for Command class.
-
0.77.124 Apr 2022Release notes
Open source →Notes
- [:ledger: View file changes][0.77.1]
Fixed
- PHP8+
mixedtype hint removed
-
0.77.024 Apr 2022Release notes
Open source →Notes
Added
Deprecated
- Telegram changed
voice_chat_Xtovideo_chat_X.VoiceChatXevent classes are deprecated, use newVideoChatXevent classes instead.
Fixed
- Return correct data in
Entity::jsonSerialize(@TiiFuchs)
Release notes
Open source →Notes
- [:ledger: View file changes][0.77.0] ∙ [:page_with_curl: DB migration script][0.77.0-sql-migration]
Added
- Bot API 6.0 (@TiiFuchs) (#1318)
Deprecated
- Telegram changed
voice_chat_Xtovideo_chat_X.VoiceChatXevent classes are deprecated, use newVideoChatXevent classes instead.
Fixed
- Return correct data in
Entity::jsonSerialize(@TiiFuchs)
- Telegram changed
-
0.76.130 Mar 2022Release notes
Open source →Release notes
Open source →Notes
- [:ledger: View file changes][0.76.1]
Fixed
- Fix Entity serialising for Keyboards (@TiiFuchs) (#1304)
-
0.76.020 Mar 2022Release notes
Open source →Notes
- [:ledger: View file changes][0.76.0]
Added
- Bot API 5.6 (@TiiFuchs) (#1275)
- Bot API 5.7 (@TiiFuchs) (#1284)
- PSR3 (psr/log) version 2 and 3 compatible (@noplanman) (#1287)
- Entity implements and uses JsonSerializable now (@TiiFuchs)
- Test with PHP 8.1 on Travis CI (@osavchenko) (#1291)
Changed
- Bugfix: Fixed condition in \Longman\TelegramBot\Entities\Chat::isGroupChat() that previously also counted super groups and channels. (@TiiFuchs)
-
0.75.029 Dec 2021Release notes
Open source →Notes
- [:ledger: View file changes][0.75.0] ∙ [:page_with_curl: DB migration script][0.75.0-sql-migration]
Added
- Ability to directly set commands paths. (@wright-tw, @noplanman) (#1252)
- Bot API 5.4. (@TiiFuchs, @noplanman) (#1266)
- Bot API 5.5. (@TiiFuchs, @noplanman) (#1267)
- The field
message_auto_delete_timewas added to the Chat Entity (@TiiFuchs) (#1265)
Removed
- [:exclamation:][0.75.0-bc-removed-chatactions] Removed deprecated
ChatAction::RECORD_AUDIOandUPLOAD_AUDIO. UseRECORD_VOICEandUPLOAD_VOICEinstead. (@TiiFuchs) (#1267)
Fixed
- PHP 8.1 deprecations. (@maxgorovenko) (#1260)
-
0.74.026 Jun 2021Release notes
Open source →Notes
- [:ledger: View file changes][0.74.0]
Added
- [:exclamation:][0.74.0-bc-chatmember-subentities] Bot API 5.3 (Personalized Commands, Keyboard Placeholders). (@TiiFuchs, @noplanman) (#1229, #1231)
-
0.73.120 Jun 2021Release notes
Open source →Notes
- [:ledger: View file changes][0.73.1]
Fixed
- Allow new optional parameters when setting and deleting webhook. (@TiiFuchs) (#1226)
-
0.73.014 Jun 2021Release notes
Open source →Notes
- [:ledger: View file changes][0.73.0] ∙ [:page_with_curl: DB migration script][0.73.0-sql-migration]
Added
- Bot API 5.2 (Payments 2.0). (#1216)
- Possibility to connect to MySQL DB with unix socket. (@Tynik) (#1220)
Changed
Telegram::runCommandsreturns array ofServerResponseobjects of executed commands. (#1223)
Fixed
- Regex for namespace extraction from custom command classes.
- Nested and user-triggered
Telegram::runCommands. (#1223)
-
0.72.016 Apr 2021Release notes
Open source →Notes
- [:ledger: View file changes][0.72.0] ∙ [:page_with_curl: DB migration script][0.72.0-sql-migration]
Added
- Bot API 5.1 (ChatMember Update types, Improved Invite Links, Voice Chat). (@massadm, @noplanman) (#1199)
- Method to allow adding command classes directly. (@alligator77, @noplanman) (#1207, #1209)
Deprecated
Telegram::handleGetUpdatesmethod should be passed a$dataarray for parameters. (#1202)
Fixed
message.edit_dateis now of typetimestamp. (#1191)- Allow all update types by default when using
getUpdatesmethod. (#1202)
-
0.71.005 Mar 2021Release notes
Open source →Notes
- [:ledger: View file changes][0.71.0]
Added
- Define a custom Bot API server and file download URI. (#1168)
Changed
- Improved error messages for empty input. (#1164)
- Log update when processing it, not when fetching input. (#1164)
Fixed
getUpdatesmethod wrongly sends only 1 Update when a limit of 0 is passed. (#1169)Telegram::runCommands()now passes the correct message text to the commands. (#1181)- Request limiter accepts chat ID as integer and string. (#1182)
- Calling Keyboard constructor without any parameters. (@hutattedonmyarm) (#1184)
-
0.70.125 Dec 2020Release notes
Open source →Notes
- [:ledger: View file changes][0.70.1]
Added
- Extra parameter for
Request::sendMessage()to pass options and return all response objects for split messages. (#1163)
Fixed
- Ensure download and upload path variables are defined. (#1162)
-
0.70.021 Dec 2020Release notes
Open source →Notes
- [:ledger: View file changes][0.70.0] ∙ [:page_with_curl: DB migration script][0.70.0-sql-migration]
- [:exclamation:][0.70.0-bc-minimum-php-73] PHP 7.3+ required, so make sure your code is up to date with correct types!
Added
- Bot API 5.0 (Big update!). (#1147)
Changed
- Upgrade code to PHP 7.3. (#1136, #1158)
- Speed up
/cleanquery. (@dva-re) (#1139) - Various code prettifications. (@akalongman) (#1140, #1141, #1142, #1143)
Security
- Minimum PHP 7.3, allow PHP 8.0. (#1136, #1158)
-
0.64.003 Oct 2020Release notes
Open source →Notes
- [:ledger: View file changes][0.64.0]
Added
- Support for Guzzle 7. (@KristobalJunta) (#1133)
Fixed
- Correct SQL migration script for older versions of MySQL. (#1135)
-
0.63.124 Jun 2020Release notes
Open source →Notes
- [:ledger: View file changes][0.63.1]
- This fixed version is necessary for Windows users.
Fixed
- Regex in
getFileNamespace()that introduced a breaking bug in #1114. (@jacklul) (#1115) - Fixed
runCommands()not working due to custom namespace feature. (@jacklul) (#1115, #1118)
-
0.63.016 Jun 2020Release notes
Open source →Notes
- [:ledger: View file changes][0.63.0] ∙ [:page_with_curl: DB migration script][0.63.0-sql-migration]
Added
- New method
setUpdateFilter($callback)used to filterprocessUpdate(Update $update)calls. If$callbackreturnsfalsethe update isn't processed and an empty falseyServerResponseis returned. (@VRciF) (#1045) - Replaced 'generic' and 'genericmessage' strings with Telegram::GENERIC_COMMAND and Telegram::GENERIC_MESSAGE_COMMAND constants. (@1int) (#1074)
- Bot API 4.8 (Extra Poll and Dice features). (#1082)
- Allow custom MySQL port to be defined for tests. (#1090)
- New static method
Entity::escapeMarkdownV2for MarkdownV2. (#1094) - Remove bot token from debug http logs, this can be disabled by setting
TelegramLog::$remove_bot_tokenparameter tofalse. (@jacklul) (#1095) TelegramLog::$always_log_request_and_responseparameter to force output of the request and response data to the debug log, also for successful requests. (#1089)- Bot API 4.9 (New
via_botfield). (#1112)
Changed
- [:exclamation:][0.63.0-bc-static-method-entityescapemarkdown] Made
Entity::escapeMarkdownstatic, to not require anEntityobject. (#1094) - Allow custom namespacing for commands. (@Jonybang) (#689)
Fixed
- Primary key for
poll_answeralso requires theuser_id. (#1087) - Small SQL foreign key fixes. (#1105)
-
0.62.008 Apr 2020Release notes
Open source →Notes
- [:ledger: View file changes][0.62.0] ∙ [:page_with_curl: DB migration script][0.62.0-sql-migration]
Added
- Bot API 4.5 (Unique file IDs, MarkdownV2). (#1046)
- Chain the exception thrown when getting commands from path. (#1030)
- Support
language_codeinDB::selectChats()for filtering the chats selection. (#1058) - Bot API 4.6 (Polls 2.0). (#1066)
- Bot API 4.7 (Dice, Sticker Sets, Bot Commands). (#1067)
Changed
- Save notes an unescaped JSON, to allow easy DB reading and editing of values. (#1005)
Request::setClient()now accepts more flexibleClientInterface. (#1068)
Removed
- Unnecessary
instanceofchecks for entities. (#1068) - Unused
Request::$inputvariable. (#1068)
Fixed
- Execution of
/startcommand without any custom implementation. - Return
animationtype for GIF Message (which returns bothanimationanddocument). (#1044) - Change lowercase function to
mb_strtolowerfromstrtolowerbecause oflatin-extentedcharacters. (#1051) - Extend
Request::mediaInputHelper()to includethumbparameter. (#1059) - Various docblock annotations. (#1068)
-
0.61.123 Nov 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.61.1]
Added
- Tests for schema update scripts, to ensure that updates work as expected. (#1025)
Fixed
- Parameter
inline_query_idinInlineQuery::answerInlineQuery. (#1021) - Corrected DB schema update 0.60.0-0.61.0. (#1025)
-
0.61.002 Nov 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.61.0] ∙ [:page_with_curl: DB migration script][0.61.0-sql-migration]
- :exclamation: Built-in logging (Monolog) has been removed, a custom PSR-3 logger must be used now! (see #964 for more info)
Added
- Code snippet in
GenericmessageCommandto keep obsolete service message system commands working. (#999) - Static boolean property
SystemCommand::$execute_deprecated(must be assigned before handling the request) to try and execute any deprecated system command. (#999) - Improved MySQL DB index for
messagetable, making the cleanup much faster on bigger databases. (Thanks to @damianperez) (#1015) /cleanupcommand now supports dry run which simply outputs all queries that would be run. (#1015)
Changed
- Small readme and code fixes / simplifications. (#1001)
- Upgrade PHPUnit to 8.x and PHPCS to 3.5. For tests now minimum PHP version is 7.2. (#1008)
- Updated updates log importer (requires PHP7+). (#1009)
Removed
- Service message system commands, which are now handled by
GenericmessageCommand. (#999) - [:exclamation:][0.61.0-bc-remove-monolog-from-core] Monolog has been removed as built-in logging engine. (#1009)
- Assets have been moved to a dedicated repository. (#1012)
Fixed
- Boolean value for Polls gets saved correctly in MySQL DB. (#996)
- Correctly use
Request::answerInlineQueryinInlineQuery::answer. (#1001) - PSR-12 incompatibilities in the codebase. (#1008)
- Improved and corrected
/cleanupcommand. (#1015)
-
0.60.016 Aug 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.60.0]
Added
- Bot API 4.4 (Animated stickers,
ChatPermissions). (#990)
Changed
- Allow passing native entity objects to requests. (#991)
Fixed
- Non-existing commands now correctly execute
GenericCommandagain. (#993)
-
0.59.118 Jul 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.59.1]
- :exclamation: Deprecated logging method will be removed in the next version, update to PSR-3 now! (see #964 for more info)
Added
- Issue labels set automatically via templates.
Changed
- Logging only updates or only debug/errors is now possible. (#983)
Fixed
- Don't output deprecation notices if no logging is enabled. (#983)
- Respect custom HTTP Client initialisation, no matter when it is set. (#986)
-
0.59.007 Jul 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.59.0]
Changed
- Touched up readme including header and badges. (#981)
- Updated changelog to be more useful for external integrations like [Tidelift] and GitHub releases. (#981)
Removed
- Abstract methods from
InputMediainterface, as method annotations didn't work for propagation. (#978)
-
0.58.026 Jun 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.58.0] ∙ [:page_with_curl: DB migration script][0.58.0-sql-migration]
- Logging now uses [PSR-3]
LoggerInterface. Learn more about how to use it here: #964
Added
- New funding and support details. (#971)
- Custom issue templates. (#972)
- Bot API 4.3 (Seamless Telegram Login,
LoginUrl) (#957) reply_markupfield toMessageentity. (#957)
Changed
- Use PSR-12 for code style. (#966)
- Some general housekeeping. (#972)
- [:exclamation:][0.58.0-bc-return-value-of-empty-entity-properties] Return an empty array for Entity properties with no items, instead of
null. (#969) TelegramLognow adheres to [PSR-3]LoggerInterfaceand allows custom logger implementations. (#964)
Deprecated
- Old logging that uses Monolog still works but will be removed in the near future. Use
TelegramLog::initialize($logger, $update_logger);from now on. (#964) - [:exclamation:][0.58.0-bc-startcommand-is-now-a-usercommand]
StartCommandis now aUserCommand(notSystemCommandany more). (#970)
Removed
- Botan.io integration completely removed. (#968)
Fixed
forward_dateis now correctly saved to the DB. (#967)- Broken
StickerSet::getStickers()method. (#969) - Smaller code and docblock fixes. (#973)
Security
- Security disclosure managed by [Tidelift]. (#971)
- Don't allow a user to call system commands directly. (#970)
-
0.57.001 Jun 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.57.0] ∙ [:page_with_curl: DB migration script][0.57.0-sql-migration]
- :grey_exclamation: This is a big update and involves a bunch of MySQL database updates, so please review the changelog carefully.
Added
- New logo! :tada: (#954)
- Bot API 4.2 (Polls). (#948)
getIsMember()method toChatMemberentity. (#948)getForwardSenderName()method toMessageentity. (#948)forward_sender_name(and forgottenforward_signature) DB fields. (#948)- Added missing API fields to Entities and DB. (#885)
- Created database tables for
shipping_queryandpre_checkout_query. (#885)
Fixed
- Missing DB table name specifier in
/cleanupcommand. (#947)
-
0.56.015 Apr 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.56.0] ∙ [:page_with_curl: DB migration script][0.56.0-sql-migration]
- :grey_exclamation: This is a big update, so please review the changelog carefully!
Added
- Helper for sending
InputMediaobjects usingRequest::sendMediaGroup()andRequest::editMediaMessage()methods. - Allow passing absolute file path for InputFile fields, instead of
Request::encodeFile($path). (#934)
Changed
- All Message field types dynamically search for an existing Command class that can handle them. (#940)
- Upgrade dependencies. (#945)
Deprecated
- Botan.io service has been discontinued. (#925)
- Most built-in System Commands will be handled by GenericmessageCommand by default in a future release and will require a custom implementation. (#940)
Fixed
- Constraint errors in
/cleanupcommand. (#930) - Return correct objects for requests. (#934)
- PHPCS: static before visibility declaration. (#945)
-
0.55.106 Jan 2019Release notes
Open source →Notes
- [:ledger: View file changes][0.55.1]
Added
- Add missing
Request::editMessageMedia()andCallbackQuery::getChatInstance()methods. (#916)
Fixed
- Return correct message type. (#913)
-
0.55.020 Dec 2018Release notes
Open source →Notes
- [:ledger: View file changes][0.55.0] ∙ [:page_with_curl: DB migration script][0.55.0-sql-migration]
Added
- Bot API 4.0 and 4.1 (Telegram Passport) (#870, #871)
- Test PHP 7.3 with Travis. (#903)
Changed
- [:exclamation:][0.55.0-bc-move-animation-out-of-games-namespace] Move Animation entity out of Games namespace.
Fixed
- Added missing
video_notetoMessagetypes.
-
0.54.123 Oct 2018Release notes
Open source →Notes
- [:ledger: View file changes][0.54.1]
Fixed
sendToActiveChatsnow works correctly for any valid Request action. (#898)
-
0.54.021 Jul 2018Release notes
Open source →Notes
- [:ledger: View file changes][0.54.0] ∙ [:page_with_curl: DB migration script][0.54.0-sql-migration]
Added
ChatActionclass to simplify chat action selection. (#859)- Telegram Games platform! (#732)
- Ability to set custom MySQL port. (#860)
- New
InvalidBotTokenExceptionexception. (#855)
Changed
- [:exclamation:][0.54.0-bc-rename-constants] Rename and ensure no redefinition of constants:
BASE_PATH->TB_BASE_PATH,BASE_COMMANDS_PATH->TB_BASE_COMMANDS_PATH. (#813) - Improve readability of readme code snippets. (#861)
Fixed
- Response from
getStickerSet. (#838)
-
0.53.031 Mar 2018Release notes
Open source →Notes
- [:ledger: View file changes][0.53.0] ∙ [:page_with_curl: DB migration script][0.53.0-sql-migration]
Added
- Implemented new changes for Bot API 3.6 (streamable InputMediaVideo, connected website). (#799)
Telegram::getLastUpdateId()method, returns ID of the last update that was processed. (#767)Telegram::useGetUpdatesWithoutDatabase()method, enablesTelegram::handleGetUpdates()to run without a database. (#767)
Changed
- Updated Travis to use Trusty containers (for HHVM) and add PHP 7.2 to the tests. (#739)
- Add debug log entry instead of throwing an exception for duplicate updates. (#765)
Telegram::handleGetUpdates()can now work without a database connection (not enabled by default). (#767)- Improved
/sendtochanneland/sendtoallcommands, using new message helpers. (#810)
Fixed
- PHPCS fixes for updated CodeSniffer dependency. (#739)
- Send messages correctly via
/sendtochannel. (#803)
-
0.52.007 Jan 2018Release notes
Open source →Notes
- [:ledger: View file changes][0.52.0]
Fixed
- Entity relations and wrong types for payments. (#731)
- Allow empty string for
switch_inline_queryandswitch_inline_query_current_chat(InlineKeyboardButton). (#736) - Fix empty date entry for User and Chat entities, using the current timestamp instead. (#738)
-
0.51.005 Dec 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.51.0] ∙ [:page_with_curl: DB migration script][0.51.0-sql-migration]
Added
- Implemented new changes for Bot API 3.5 (InputMedia, MediaGroup). (#718)
-
0.50.017 Oct 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.50.0]
Added
- Finish implementing payments, adding all missing type checks and docblock methods. (#647)
- Implemented new changes for Bot API 3.4 (Live Locations). (#675)
Changed
- [:exclamation:][0.50.0-bc-messagegetcommand-return-value]
Message::getCommand()returnsnullif not a command, instead offalse. (#654)
Fixed
- SQL update script for version 0.44.1-0.45.0.
- Issues found by Scrutinizer (Type hints and return values). (#654)
- Check inline keyboard button parameter value correctly. (#672)
-
0.49.017 Sep 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.49.0]
Added
- Donation section and links in readme.
- Missing payment methods in
Requestclass. - Some helper methods for replying to commands and answering queries.
Changed
- Updated and optimised all DB classes, removing a lot of bulky code.
Fixed
- Ensure named SQL statement parameters are unique.
- Channel selection when using
DB::selectChats().
-
0.48.026 Aug 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.48.0] ∙ [:page_with_curl: DB migration script][0.48.0-sql-migration]
Added
- New entities, methods, update types and inline keyboard button for Payments (Bot API 3.0).
- Add new methods, fields and objects for working with stickers (Bot API 3.2).
- New fields for Chat, User and Message objects (Bot API 3.3).
is_botadded touserDB table.
Changed
- [:exclamation:][0.48.0-bc-correct-printerror] Corrected
ServerResponse->printErrormethod to print by default and return by setting$returnparameter. - Ensure command names are handled as lower case.
Fixed
- Correctly save
reply_to_messageto DB.
-
0.47.106 Aug 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.47.1]
Added
- Linked version numbers in changelog for easy verification of code changes.
Fixed
- Private-only commands work with edited messages now too.
-
0.47.006 Aug 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.47.0]
Changed
- Updated readme to latest state of 0.47.0.
Fixed
Telegram::enableAdmin()now handles duplicate additions properly.Request::getMe()failure doesn't break cron execution any more.
Security
- [:exclamation:][0.47.0-bc-private-only-admin-commands] New command parameter
$private_onlyto enforce usage in private chats only (set by default for Admin commands).
-
0.46.015 Jul 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.46.0]
Added
- Callbacks can be added to be executed when callback queries are called.
- New Bot API 3.1 changes (#550).
/cleanupcommand for admins, that cleans out old entries from the DB.
Changed
- [:exclamation:][0.46.0-bc-request-class-refactor] Big refactor of the
Requestclass, removing most custom method implementations.
-
0.45.025 Jun 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.45.0] ∙ [:page_with_curl: DB migration script][0.45.0-sql-migration]
Added
- Documents can be sent by providing its contents via Psr7 stream (as opposed to passing a file path).
- Allow setting a custom Guzzle HTTP Client for requests (#511, #536).
- First implementations towards Bots API 3.0.
Changed
- [:exclamation:][0.45.0-bc-chats-params-array]
Request::sendToActiveChatsandDB::selectChatsnow accept parameters as an options array and allow selecting of channels.
Deprecated
- Deprecated
Message::getNewChatMember()(UseMessage::getNewChatMembers()instead to get an array of all newly added members).
Removed
- [:exclamation:][0.45.0-bc-up-download-directory] Upload and download directories are not set any more by default and must be set manually.
- [:exclamation:][0.45.0-bc-remove-deprecated-methods] Completely removed
Telegram::getBotName()andEntity::getBotName()(Use::getBotUsername()instead). - [:exclamation:][0.45.0-bc-remove-deprecated-methods] Completely removed deprecated
Telegram::unsetWebhook()(UseTelegram::deleteWebhook()instead).
Fixed
- ID fields are now typed with
PARAM_STRPDO data type, to allow huge numbers. - Message type data type for PDO corrected.
- Indexed table columns now have a fitting length.
- Take
custom_inputinto account when using getUpdates method (mainly for testing). - Request limiter has been fixed to correctly support channels.
-
0.44.125 Apr 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.44.1]
Fixed
- Erroneous exception when using webhook without a database connection.
-
0.44.025 Apr 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.44.0]
Added
- Proper standalone
scrutinizer.ymlconfig. - Human-readable
last_error_date_stringfor debug command.
Changed
- Bot username no longer required for object instantiation.
Removed
- All examples have been moved to a [dedicated repository][example-bot].
Fixed
- [:exclamation:][0.44.0-bc-update-content-type] Format of Update content type using
$update->getUpdateContent().
-
0.43.017 Apr 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.43.0]
Added
- Travis CI webhook for Support Bot.
- Interval for request limiter.
isRunCommands()method to check if called viarunCommands().- Ensure coding standards for
testsfolder withphpcs.
Changed
- Move default commands to
examplesfolder. - All links point to new organisation repo.
- Add PHP 7.1 support and update dependencies.
Fixed
- Prevent handling the same Telegram updates multiple times, throw exception instead.
-
0.42.009 Apr 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.42.0]
Added
- Added
getBotId()to directly access bot ID.
Changed
- Rename
bot_nametobot_usernameeverywhere.
Deprecated
- Deprecated
Telegram::getBotName()(UseTelegram::getBotUsername()instead).
Fixed
- Tests are more reliable now, using a properly formatted API key.
-
0.41.025 Mar 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.41.0]
Added
$show_in_helpattribute for commands, to set if it should be displayed in the/helpcommand.- Link to new Telegram group:
https://telegram.me/PHP_Telegram_Bot_Support - Introduce change log.
-
0.40.107 Mar 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.40.1]
Fixed
- Infinite message loop, caused by incorrect Entity variable.
-
0.40.020 Feb 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.40.0]
Added
- Request limiter for incoming requests.
Fixed
- Faulty formatting in logger.
-
0.39.020 Jan 2017Release notes
Open source →Notes
- [:ledger: View file changes][0.39.0]
Added
- Newest bot API changes.
- Allow direct access to PDO object (
DB::getPdo()). - Simple
/debugcommand that displays various system information to help debugging. - Crontab-friendly script.
Changed
- Botan integration improvements.
- Make logger more flexible.
Fixed
- Various bugs and recommendations by Scrutinizer.
-
0.38.125 Dec 2016Release notes
Open source →Notes
- [:ledger: View file changes][0.38.1]
Fixed
- Usage of self-signed certificates in conjunction with the new
allowed_updateswebhook parameter.
-
0.38.025 Dec 2016Release notes
Open source →Notes
- [:ledger: View file changes][0.38.0]
Added
- New
switch_inline_query_current_chatoption for inline keyboard. - Support for
channel_postandedited_channel_post. - New alias
deleteWebhook(forunsetWebhook).
Changed
- Update WebhookInfo entity and
setWebhookto allow passing of new arguments.
-
0.37.124 Dec 2016Release notes
Open source →Notes
- [:ledger: View file changes][0.37.1]
Fixed
- Keyboards that are built without using the KeyboardButton objects.
- Commands that are called via
/command@botnameby correctly passing them the bot name.
-
0.28.015 Feb 2016Nothing published for this version
-
0.27.024 Jan 2016Nothing published for this version
-
0.26.005 Jan 2016Nothing published for this version
-
0.25.005 Jan 2016Nothing published for this version