mirror of https://github.com/midoks/mdserver-web
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
549 B
28 lines
549 B
2 years ago
|
# coding:utf-8
|
||
|
|
||
|
import sys
|
||
|
import io
|
||
|
import os
|
||
|
import time
|
||
|
import re
|
||
|
import json
|
||
|
import base64
|
||
|
import threading
|
||
|
|
||
|
sys.path.append(os.getcwd() + "/class/core")
|
||
|
import mw
|
||
|
|
||
|
import telebot
|
||
|
from telebot import types
|
||
|
from telebot.util import quick_markup
|
||
|
|
||
|
|
||
|
def init(bot):
|
||
|
bot.delete_my_commands(scope=None, language_code=None)
|
||
|
bot.set_my_commands(
|
||
|
commands=[
|
||
|
telebot.types.BotCommand("start", "查看帮助信息"),
|
||
|
telebot.types.BotCommand("faq", "查看bbs帖子主题【不要忘记:冒号】"),
|
||
|
],
|
||
|
)
|