mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
from telegram import Update, ReplyKeyboardRemove
|
||
from telegram.ext import CallbackContext
|
||
from telegram.helpers import escape_markdown
|
||
|
||
|
||
async def start(update: Update, _: CallbackContext) -> None:
|
||
user = update.effective_user
|
||
await update.message.reply_markdown_v2(f'你好 {user.mention_markdown_v2()} {escape_markdown("!我是派蒙 !")}')
|
||
|
||
|
||
async def help_command(update: Update, _: CallbackContext) -> None:
|
||
await update.message.reply_text('前面的区域,以后再来探索吧!')
|
||
|
||
|
||
async def unknown_command(update: Update, _: CallbackContext) -> None:
|
||
await update.message.reply_text('前面的区域,以后再来探索吧!')
|
||
|
||
|
||
async def emergency_food(update: Update, _: CallbackContext) -> None:
|
||
await update.message.reply_text('派蒙才不是应急食品!')
|
||
|
||
|
||
async def ping(update: Update, _: CallbackContext) -> None:
|
||
await update.message.reply_text("online! ヾ(✿゚▽゚)ノ")
|
||
|
||
|
||
async def reply_keyboard_remove(update: Update, context: CallbackContext) -> None:
|
||
await update.message.reply_text("移除远程键盘成功", reply_markup=ReplyKeyboardRemove())
|
||
# await context.bot.delete_message(chat_id=update.message.chat_id, message_id=update.message.message_id)
|