aboba
This commit is contained in:
@ -540,6 +540,18 @@ async def chatid(msg: Message):
|
||||
await bot.send_message(chat_id=msg.chat.id, text=msg.chat.id)
|
||||
|
||||
|
||||
@bot.message_handler(commands=["guide"])
|
||||
async def guide(msg: Message):
|
||||
await bot.send_message(chat_id=msg.chat.id, text=textbook.guide, parse_mode="html")
|
||||
|
||||
|
||||
@bot.message_handler(commands=["commands"])
|
||||
async def commands(msg: Message):
|
||||
await bot.send_message(
|
||||
chat_id=msg.chat.id, text=textbook.commands, parse_mode="html"
|
||||
)
|
||||
|
||||
|
||||
async def main():
|
||||
a = asyncio.create_task(bot.polling(non_stop=True))
|
||||
await a
|
||||
|
||||
Reference in New Issue
Block a user