irazasyed / telegram-bot-sdk

🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.
https://telegram-bot-sdk.com
BSD 3-Clause "New" or "Revised" License
3.05k stars 673 forks source link

Is there any simple example in native PHP? #346

Closed behnamazimi closed 7 years ago

behnamazimi commented 7 years ago

Hi, Is there any sample by this SDK in PHP, I want to use this but I couldn't config and run in for my Bot. or Is there any documentation about how should I config this SDK for webhook?

devi-vahid commented 7 years ago

https://telegram-bot-sdk.readme.io/docs

behnamazimi commented 7 years ago

Thanks for your reply, but in this document there is no example about how to config bot or how to send the first request or get updates! I could not find the relation between classes and objects out. for example what is the HttpClient. Is it possible to give me simple code that send a request to bot or get updates?

irazasyed commented 7 years ago

@behnamazimi Here you go: https://github.com/telegram-bot-kit/standalone-bootstrap

The docs cover both Laravel and Standalone usage. Please check them. Thanks!