Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | import telegram |
||
18 | def queue(self, message, next_cmd): |
||
19 | if isinstance(message.chat, telegram.user.User): |
||
20 | # This is a direct chat with a user, reply to message will not |
||
21 | # get populated. Instead wait for the message with id msg+1 |
||
22 | msg_id = message.message_id+1 |
||
23 | else: |
||
24 | msg_id = message.message_id |
||
25 | self.bot.queue['{}_{}'.format(message.chat.id, msg_id)] = next_cmd |
||
26 | |||
35 |