excelent / telegram-bot
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
README
Kutubxonadagi qulayliklar
- Tez
- Ishonchli
- Xavfsiz
- oson
- qulay
Ro'yhat
Boshlash
Boshlash uchun avval kerakli Modullarni Bot.php Fayliga yuklab olish kerak
<?php use Telegram\Bot; use Database\DB;
Webhook
Endi Bot ishlashi uchun webhook qilish kerak
- webhook index.php ga Yo'naltiriladi
https://api.telegram.org/bot{bot-token}/setwebhook?url={fayil-manzili}
botga yuborilgan xabarni qabul qilish
Foydalanuvchi botga yuborgan Textli Xabarni Qabul qilish
Bot::getText();
Xabar yuborish
Bot.php
<?php use Telegram\Bot; use Database\DB; Bot::sendMessage("Salom");