(message: types.Message)
| 109 | # 2. Is there any way to register this message handler only when i found the opponent? |
| 110 | @bot.message_handler(content_types=['animation', 'audio', 'contact', 'dice', 'document', 'location', 'photo', 'poll', 'sticker', 'text', 'venue', 'video', 'video_note', 'voice']) |
| 111 | def chatting(message: types.Message): |
| 112 | if message.chat.id in users: |
| 113 | bot.copy_message(users[message.chat.id], users[users[message.chat.id]], message.id) |
| 114 | else: |
| 115 | bot.send_message(message.chat.id, 'No one can hear you...') |
| 116 | |
| 117 | bot.infinity_polling(skip_pending=True) |
nothing calls this directly
no test coverage detected
searching dependent graphs…