-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessages.py
19 lines (18 loc) · 855 Bytes
/
messages.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import core
import random
PLUGINVERSION = 2
# Always name this variable as `plugin`
# If you dont, module loader will fail to load the plugin!
plugin = core.Plugin()
@plugin.command(command="/first_message",
description="Replies to first message in chat",
inline_supported=False,
hidden=False)
def fmsg(bot, update, user, args):
bot.sendMessage(update.message.chat.id, "Here is first message in this chat", reply_to_message_id=1)
# @plugin.command(command="/random_message",
# description="Replies to random message in chat",
# inline_supported=False,
# hidden=False)
# def rmsg(bot, update, user, args):
# bot.sendMessage(update.message.chat.id, "Random message", reply_to_message_id=random.randint(1, update.message.message_id))