问题描述
我正在通过 Telebot 制作电报机器人。
我使用 telegram_bot_calendar
来使用日历。
我需要更改日历的语言。这怎么办?
calendar,step = DetailedTelegramCalendar(calendar_id=1).build()
bot.send_message(message.chat.id,f"Select {LSTEP[step]}",reply_markup=calendar)
@bot.callback_query_handler(func=DetailedTelegramCalendar.func(calendar_id=1))
def cal(c):
result,key,step = DetailedTelegramCalendar(calendar_id=1).process(c.data)
if not result and key:
bot.edit_message_text(f"Выберите {LSTEP[step]}",c.message.chat.id,c.message.message_id,reply_markup=key)
elif result:
bot.delete_message(c.message.chat.id,c.message.message_id)
#bot.edit_message_text(c.message.chat.id,c.message.message_id)
global date
date = f'{result}'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)