Plugin Directory

Changeset 2718547


Ignore:
Timestamp:
05/05/2022 10:38:03 AM (4 years ago)
Author:
webxid
Message:

fix readme file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bots-master/trunk/README.txt

    r2718541 r2718547  
    6969== Code Usage ==
    7070
    71     use WebXID\BotsMaster\ChatBot;
    72     use WebXID\BotsMaster\ChatBot\BotUser;
     71`
     72use WebXID\BotsMaster\ChatBot;
     73use WebXID\BotsMaster\ChatBot\BotUser;
    7374
    74     BotUser::find(['type_id' => ChatBot\BotUser::TYPE_CHAT]); // returns all Group Chats and Channels list
    75     BotUser::find(['type_id' => ChatBot\BotUser::TYPE_USER]); // returns all subscribers
     75BotUser::find(['type_id' => ChatBot\BotUser::TYPE_CHAT]); // returns all Group Chats and Channels list
     76BotUser::find(['type_id' => ChatBot\BotUser::TYPE_USER]); // returns all subscribers
    7677
    77     BotUser::all(); // returns all records
     78BotUser::all(); // returns all records
    7879
    79     // -------------------------
     80// -------------------------
    8081
    81     $bot_user = BotUser::findOne(['type_id' => ChatBot\BotUser::TYPE_USER]);
     82$bot_user = BotUser::findOne(['type_id' => ChatBot\BotUser::TYPE_USER]);
    8283
    83     $bot_user
    84         && ChatBot::factory($user)
    85             ->sendMessage('<b>Hello</b> world!'); // will send the message, if the plugin installed correctly
     84$bot_user
     85    && ChatBot::factory($user)
     86        ->sendMessage('<b>Hello</b> world!'); // will send the message, if the plugin installed correctly
     87`
    8688
    8789Please, check the Doc https://core.telegram.org/bots/api#html-style to get allowed HTML tags
Note: See TracChangeset for help on using the changeset viewer.