Skip to content
SilverOS edited this page Mar 16, 2020 · 7 revisions

Silbot

Silbot is a PHP framework based on OOP programming in PHP 7 with MySQL integration for Telegram bots. This framework easly provides many feature that can be useful for Developers. If you need any help you can pm me on @iTzSilver_YTbot or ask on our group @SilverOSGrupposo

Silbot is made to make everything faster and easier:

Sending a Message

$bot->sendMessage($chat,'Hello!'); //first way
$bot->sendMessage($chat->id,'Hello!'); //second way

Answering a callback query

$callback->answer();
$callback->answer('This is an alert!',true);

Setting or Getting a user MySQL Column

$user->db->setColumn('state','search');
$user->db->state;

Deleting a message

$message->deleteMessage();

Checking if a user is in a chat

$user->isMember($chat->id);
$user->isMember($chat);
Clone this wiki locally