fix: command list

Signed-off-by: Frost Ming <me@frostming.com>
This commit is contained in:
Frost Ming 2023-12-12 14:43:09 +08:00
parent cbfa805983
commit 8676f069d3
No known key found for this signature in database
GPG Key ID: 5BFA9CB4DDA943BF

View File

@ -15,7 +15,7 @@ from prettymapp.osm import get_osm_geometries
from prettymapp.plotting import Plot as PrettyPlot
from prettymapp.settings import STYLES
from telebot import TeleBot # type: ignore
from telebot.types import Message # type: ignore
from telebot.types import BotCommand, Message # type: ignore
PIL.Image.MAX_IMAGE_PIXELS = 933120000
MAX_IN_MEMORY = 10 * 1024 * 1024 # 10MiB
@ -98,14 +98,10 @@ def main():
bot = TeleBot(options.tg_token)
bot.set_my_commands(
[
{
"command": "github",
"description": "github poster: /github <github_user_name> [<start>-<end>]",
},
{
"command": "map",
"description": "pretty map: /map <address>",
},
BotCommand(
"github", "github poster: /github <github_user_name> [<start>-<end>]"
),
BotCommand("map", "pretty map: /map <address>"),
]
)
print("Bot init done.")