darkdarin / telegram-bot-sdk
用于与Telegram Bot API交互的SDK
v0.3.3
2024-03-23 12:53 UTC
Requires
- php: 8.2.*|8.3.*
- darkdarin/serializer: ^1.3
- php-http/multipart-stream-builder: ^1.3
- psr-discovery/http-client-implementations: ^1.0
- psr-discovery/http-factory-implementations: ^1.0
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
- psr/http-message: ^2.0
Requires (Dev)
- hyperf/di: ~3.0.0
- illuminate/support: ^10.0
- laravel/pint: ^1.1
- roave/security-advisories: dev-latest
README
用于与Telegram Bot API交互的SDK
可以独立使用,同时支持Laravel 10和Hyperf 3.0
这是一个alpha版本,不支持所有API方法和所有API对象。
Telegram Bot API版本:6.9(2023年9月22日)
支持的方法
- getUpdates (https://core.telegram.org/bots/api#getupdates)
- setWebhook (https://core.telegram.org/bots/api#setwebhook)
- deleteWebhook (https://core.telegram.org/bots/api#deletewebhook)
- getWebhookInfo (https://core.telegram.org/bots/api#getwebhookinfo)
- getMe (https://core.telegram.org/bots/api#getme)
- sendMessage (https://core.telegram.org/bots/api#sendmessage)
- forwardMessage (https://core.telegram.org/bots/api#forwardmessage)
- copyMessage (https://core.telegram.org/bots/api#copymessage)
- sendPhoto (https://core.telegram.org/bots/api#sendphoto)
- sendAudio (https://core.telegram.org/bots/api#sendaudio)
- sendDocument (https://core.telegram.org/bots/api#senddocument)
- sendVideo (https://core.telegram.org/bots/api#sendvideo)
- sendAnimation (https://core.telegram.org/bots/api#sendanimation)
- sendVoice (https://core.telegram.org/bots/api#sendvoice)
- sendVideoNote (https://core.telegram.org/bots/api#sendvideonote)
- sendMediaGroup (https://core.telegram.org/bots/api#sendmediagroup)
- sendLocation (https://core.telegram.org/bots/api#sendlocation)
- sendVenue (https://core.telegram.org/bots/api#sendvenue)
- sendContact (https://core.telegram.org/bots/api#sendcontact)
- sendPoll (https://core.telegram.org/bots/api#sendpoll)
- sendDice (https://core.telegram.org/bots/api#senddice)
- sendChatAction (https://core.telegram.org/bots/api#sendchataction)
- editMessageText (https://core.telegram.org/bots/api#editmessagetext)
- editMessageCaption (https://core.telegram.org/bots/api#editmessagecaption)
- editMessageLiveLocation (https://core.telegram.org/bots/api#editmessagelivelocation)
- stopMessageLiveLocation (https://core.telegram.org/bots/api#stopmessagelivelocation)
- 编辑消息回复格式 (https://core.telegram.org/bots/api#editmessagereplymarkup)
- 停止投票 (https://core.telegram.org/bots/api#stoppoll)
- 删除消息 (https://core.telegram.org/bots/api#deletemessage)