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.
protect_content and allow_sending_without_reply parameters to \TelegramBot\Api\BotApi methodsattach://<file_attach_name> in \TelegramBot\Api\BotApi methods sendMediaGroup, createNewStickerSet, addStickerToSet, editMessageMediathumb to thumbnail parameter in Animation, Document, Sticker, StickerSet, Video, VideoNote typesthumb_* to thumbnail_* parameter in Inline/QueryResult types$replyMarkup parameters\TelegramBot\Api\BotApi::setWebhook $allowedUpdates parameter. Automatically serialize if array passed\TelegramBot\Api\Types\Message::$newChatMembers\TelegramBot\Api\BotApi::getChatMemberCount method\TelegramBot\Api\BotApi::banChatMember method$messageId to \TelegramBot\Api\BotApi::unpinChatMessage\TelegramBot\Api\Types\ForceReply::$inputFieldPlaceholder propertythumb* methods in \TelegramBot\Api\BotApi\TelegramBot\Api\BotApi::setStickerSetThumb. Use \TelegramBot\Api\BotApi::setStickerSetThumbnail instead\TelegramBot\Api\Types\ReplyKeyboardHide class\TelegramBot\Api\BotApi::getChatMembersCount. Use \TelegramBot\Api\BotApi::getChatMemberCount instead\TelegramBot\Api\BotApi::kickChatMember. Use \TelegramBot\Api\BotApi::banChatMember instead\TelegramBot\Api\Types\Venue mapping (foursquare_type, google_place_id, google_place_type)scope and languageCode parameters to \TelegramBot\Api\BotApi::setMyCommands\TelegramBot\Api\BotApi::answerWebAppQuery method and \TelegramBot\Api\Types\Message::$webAppData property\TelegramBot\Api\Types\ReplyKeyboardMarkup::$isPersistent property\TelegramBot\Api\Types\ReplyKeyboardMarkup::$inputFieldPlaceholder property\TelegramBot\Api\Collection\Collection::addItem max count constraint (#333)\TelegramBot\Api\Types\StickerSet mapping\TelegramBot\Api\BotApi::copyMessage not returning \TelegramBot\Api\Types\MessageId$messageThreadId parameter in \TelegramBot\Api\BotApi methods placed not in the end of the list of parameters\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\TelegramBot\Api\Botan class$trackerToken parameter in \TelegramBot\Api\BotApi::__construct$trackerToken parameter in \TelegramBot\Api\Events\EventCollection::__construct\TelegramBot\Api\Types\PollAnswer::getFrom use \TelegramBot\Api\Types\PollAnswer::getUser instead\TelegramBot\Api\BotApi::setMyCommands. Use \TelegramBot\Api\Types\ArrayOfBotCommand instead\TelegramBot\Api\Types\Update::$myChatMember field\TelegramBot\Api\Types\Update::$chatMember field\TelegramBot\Api\Types\Update::$chatJoinRequest field\TelegramBot\Api\BotApi::createChatInviteLink api method\TelegramBot\Api\BotApi::editChatInviteLink api method\TelegramBot\Api\BotApi::revokeChatInviteLink api method\TelegramBot\Api\BotApi::approveChatJoinRequest api method\TelegramBot\Api\BotApi::declineChatJoinRequest api methodpsr/http-client and symfony/http-client)\TelegramBot\Api\BotApi::validateWebAppData to validate window.Telegram.WebApp.initData\TelegramBot\Api\Types\Message::$videoNote field\TelegramBot\Api\Types\Update::$messageReaction field\TelegramBot\Api\Types\Update::$messageReactionCount field\TelegramBot\Api\BotApi::setMessageReaction api method\TelegramBot\Api\BotApi::deleteMessages api method\TelegramBot\Api\BotApi::copyMessages api method\TelegramBot\Api\BotApi::forwardMessages api method\TelegramBot\Api\BotApi::getUserChatBoosts api methodreply_to_message_id and allow_sending_without_reply parameters to \TelegramBot\Api\BotApi methods. Use reply_parameters instead.disable_web_page_preview parameter to \TelegramBot\Api\BotApi methods. Use link_preview_options instead.How can I help you explore Laravel packages today?