bsimjoo / Telegram-RSS-Bot

A telegram bot for sending latest feed of a site or weblog to all users
GNU General Public License v3.0
8 stars 10 forks source link

exception on message editing #8

Closed github-actions[bot] closed 3 years ago

github-actions[bot] commented 3 years ago

exception on message editing

https://github.com/bsimjoo/Telegram-RSS-Bot/blob/ca29f5e012b9813f3930527df23cd14ec97056cd/main.py#L269


                if c.args[0].isdigit():
                    self.interval = int(c.args[0])
                    self.__set_data__(
                        'interval', self.interval, self.data_db)
                    #TODO: exception on message editing
                    # labels: bug
                    u.message.reply_text('✅ Interval changed to'+str(self.interval))
                    return
            u.message.reply_markdown_v2('❌ Bad command, use `/set_interval {new interval in secound}`')

        # ----------------[User Commands]----------------

f19ea3b182d856225f6a4460c7f24d4464525d3d