Skip to content

Commit

Permalink
Update bot.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AnjanaMadu authored Aug 17, 2021
1 parent abdd05f commit 32e8118
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,18 @@ async def start(event):
buttons=(
[Button.url('📣 Channel', 'https://t.me/harp_tech')],
[Button.url('📦 Source', 'https://github.com/AnjanaMadu/MentionAllBot')]
)
),
link_preview=False
)
@client.on(events.NewMessage(pattern="^/help$"))
async def help(event):
helptext = "**Help Menu of MentionAllBot**\n\nCommand: /mentioall\n__You can use this command with text what you want to mention others.__\n`Example: /mentionall Good Morning!`\n__You can you this command as a reply to any message. Bot will tag users to that replied messsage__."
helptext = "**Help Menu of MentionAllBot**\n\nCommand: /mentioall\n__You can use this command with text what you want to mention others.__\n`Example: /mentionall Good Morning!`\n__You can you this command as a reply to any message. Bot will tag users to that replied messsage__.\n\nFollow [@AnjanaMadu](https://github.com/AnjanaMadu) on Github"
await event.reply(helptext,
buttons=(
[Button.url('📣 Channel', 'https://t.me/harp_tech')],
[Button.url('📦 Source', 'https://github.com/AnjanaMadu/MentionAllBot')]
)
),
link_preview=False
)

@client.on(events.NewMessage(pattern="^/mentionall ?(.*)"))
Expand Down

0 comments on commit 32e8118

Please sign in to comment.