Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Api Laravel Package

telegram-bot/api

Native PHP wrapper for the Telegram Bot API with no extra requirements. Supports all API methods and response types, including sending messages, documents, reply/inline keyboards, and media groups. Install via Composer and start building bots quickly.

View on GitHub
Deep Wiki
Context7
2.5.0

Added

  • Add missing protect_content and allow_sending_without_reply parameters to \TelegramBot\Api\BotApi methods
  • Add support attach://<file_attach_name> in \TelegramBot\Api\BotApi methods sendMediaGroup, createNewStickerSet, addStickerToSet, editMessageMedia
  • Rename thumb to thumbnail parameter in Animation, Document, Sticker, StickerSet, Video, VideoNote types
  • Rename thumb_* to thumbnail_* parameter in Inline/QueryResult types
  • Add missing phpDoc for $replyMarkup parameters
  • Fix phpDoc for \TelegramBot\Api\BotApi::setWebhook $allowedUpdates parameter. Automatically serialize if array passed
  • Fix phpDoc for \TelegramBot\Api\Types\Message::$newChatMembers
  • Add \TelegramBot\Api\BotApi::getChatMemberCount method
  • Add \TelegramBot\Api\BotApi::banChatMember method
  • Add $messageId to \TelegramBot\Api\BotApi::unpinChatMessage
  • Add \TelegramBot\Api\Types\ForceReply::$inputFieldPlaceholder property

Deprecated

  • Deprecate using thumb* methods in \TelegramBot\Api\BotApi
  • Deprecate method \TelegramBot\Api\BotApi::setStickerSetThumb. Use \TelegramBot\Api\BotApi::setStickerSetThumbnail instead
  • Deprecate \TelegramBot\Api\Types\ReplyKeyboardHide class
  • Deprecate \TelegramBot\Api\BotApi::getChatMembersCount. Use \TelegramBot\Api\BotApi::getChatMemberCount instead
  • Deprecate \TelegramBot\Api\BotApi::kickChatMember. Use \TelegramBot\Api\BotApi::banChatMember instead
2.4.0

Added

  • Add \TelegramBot\Api\Types\Venue mapping (foursquare_type, google_place_id, google_place_type)
  • Add scope and languageCode parameters to \TelegramBot\Api\BotApi::setMyCommands
  • Add WebApp support: \TelegramBot\Api\BotApi::answerWebAppQuery method and \TelegramBot\Api\Types\Message::$webAppData property
  • Add \TelegramBot\Api\Types\ReplyKeyboardMarkup::$isPersistent property
  • Add \TelegramBot\Api\Types\ReplyKeyboardMarkup::$inputFieldPlaceholder property

Fixed

  • Fix \TelegramBot\Api\Collection\Collection::addItem max count constraint (#333)
  • Fix \TelegramBot\Api\Types\StickerSet mapping
  • Fix \TelegramBot\Api\BotApi::copyMessage not returning \TelegramBot\Api\Types\MessageId
  • Fix new $messageThreadId parameter in \TelegramBot\Api\BotApi methods placed not in the end of the list of parameters

Changed

  • \TelegramBot\Api\BotApi::getMyCommands now returns instance \TelegramBot\Api\Types\ArrayOfBotCommand instead of \TelegramBot\Api\Types\BotCommand array
  • \TelegramBot\Api\BotApi::setMyCommands now accepts instance of \TelegramBot\Api\Types\ArrayOfBotCommand instead of \TelegramBot\Api\Types\BotCommand array

Deprecated

  • Deprecate \TelegramBot\Api\Botan class
  • Deprecate $trackerToken parameter in \TelegramBot\Api\BotApi::__construct
  • Deprecate $trackerToken parameter in \TelegramBot\Api\Events\EventCollection::__construct
  • Deprecate \TelegramBot\Api\Types\PollAnswer::getFrom use \TelegramBot\Api\Types\PollAnswer::getUser instead
  • Deprecate passing array of BotCommand to \TelegramBot\Api\BotApi::setMyCommands. Use \TelegramBot\Api\Types\ArrayOfBotCommand instead
3.0.0
  • Add \TelegramBot\Api\Types\Update::$myChatMember field
  • Add \TelegramBot\Api\Types\Update::$chatMember field
  • Add \TelegramBot\Api\Types\Update::$chatJoinRequest field
  • Add \TelegramBot\Api\BotApi::createChatInviteLink api method
  • Add \TelegramBot\Api\BotApi::editChatInviteLink api method
  • Add \TelegramBot\Api\BotApi::revokeChatInviteLink api method
  • Add \TelegramBot\Api\BotApi::approveChatJoinRequest api method
  • Add \TelegramBot\Api\BotApi::declineChatJoinRequest api method
  • Add support for third party http clients (psr/http-client and symfony/http-client)
  • Add support for local bot API server
  • Add method \TelegramBot\Api\BotApi::validateWebAppData to validate window.Telegram.WebApp.initData
  • Add \TelegramBot\Api\Types\Message::$videoNote field
  • Drop php < 8.1
  • Add \TelegramBot\Api\Types\Update::$messageReaction field
  • Add \TelegramBot\Api\Types\Update::$messageReactionCount field
  • Add \TelegramBot\Api\BotApi::setMessageReaction api method
  • Add \TelegramBot\Api\BotApi::deleteMessages api method
  • Add \TelegramBot\Api\BotApi::copyMessages api method
  • Add \TelegramBot\Api\BotApi::forwardMessages api method
  • Add \TelegramBot\Api\BotApi::getUserChatBoosts api method

Deprecated

  • Deprecate reply_to_message_id and allow_sending_without_reply parameters to \TelegramBot\Api\BotApi methods. Use reply_parameters instead.
  • Deprecate disable_web_page_preview parameter to \TelegramBot\Api\BotApi methods. Use link_preview_options instead.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle