HenryzhaoH / bupt-ncov-report-tgbot

A Telegram bot for 2019-nCoV daily report to BUPT
https://t.me/buptncovbot
GNU General Public License v3.0
37 stars 11 forks source link

Support 'PAUSE' xisu checkin separately #8

Closed FredericDT closed 4 years ago

FredericDT commented 4 years ago

Major features

Telegram bot command /pausexisu for normal user to pause 'xisu checkin'.

Accordingly, /resumexisu to resume.

Migration steps

  1. Register /pausexisu and /resumexisu command at https://t.me/BotFather
  2. Make a database backup
  3. Upgrade include/config.py
  4. See migrations/README.md then migrate database schema migration_20201023_support_pause_xisu_checkin
  5. Restart the service

Slight changes to field HELP_MARKDOWN, please adapt to your situation.

FredericDT commented 4 years ago

BUG fix

For issues like

用户:xxx
自动签到异常!
服务器返回:'NoneType' object is not iterable
2020-11-09 16:10:00.010764

Please see https://github.com/Henryzhao96/bupt-ncov-report-tgbot/commit/94cc5af3d5a41cac1fc1ce9d1f4b5841062ce94d

FredericDT commented 4 years ago

/pausexisu will not be registered with botFather, in accordance with /pause. Given the fact that /pause was not registered with botFather.