You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commands/RulesCommand.php
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,9 @@
25
25
26
26
/**
27
27
* User "/rules" command
28
+
*
29
+
* Display the rules of the support group.
30
+
* Provide an inline button for the user to agree to the rules.
28
31
*/
29
32
class RulesCommand extends UserCommand
30
33
{
@@ -41,7 +44,7 @@ class RulesCommand extends UserCommand
41
44
/**
42
45
* @var string
43
46
*/
44
-
protected$version = '0.1.0';
47
+
protected$version = '0.2.0';
45
48
46
49
/**
47
50
* @var string
@@ -109,19 +112,19 @@ public static function handleCallbackQuery(CallbackQuery $callback_query, array
109
112
publicfunctionexecute(): ServerResponse
110
113
{
111
114
$text = "
112
-
Rules: `English only | No Spamming or Nonsense Posting | No Bots`
115
+
Rules: `English only | No Spam | No Bots | No long Code`
113
116
114
117
**:uk: English only**
115
118
Please keep your conversations in English inside this chatroom, otherwise your message will be deleted.
116
119
117
120
**:do_not_litter: No Spamming or Nonsense Posting**
118
-
Don't spam or send Messages with useless Content. When repeated you may be kicked or banned.
121
+
Don't spam or send Messages with useless Content. When repeated, you may be kicked or banned.
119
122
120
123
**:robot: No Bots**
121
124
Please do not add a Bot inside this Chat without asking the Admins first. Feel free to mention the Bot in a Message
122
125
123
-
**:paper: Use Pastebin to post Source Code**
124
-
If you want to share your Code for troubleshooting, please upload it to [Pastebin](https://pastebin.com) and post the link. Don't send longer code parts directly in the Chat.
126
+
**:memo: Use Pastebin to post Source Code**
127
+
If you want to share your Code for troubleshooting, please upload it to [Pastebin](https://pastebin.com) and post the link. Don't send long code parts directly in the Chat.
125
128
126
129
Also keep in mind that the [PHP Telegram Bot Support Chat](https://t.me/PHP_Telegram_Bot_Support) applies only for the [PHP Telegram Bot library](https://github.com/php-telegram-bot/core).
0 commit comments