(self)
| 341 | assert ret_msg.reply_to_message.message_id == msg.message_id |
| 342 | |
| 343 | def test_register_for_reply(self): |
| 344 | text = 'CI reply_to Test Message' |
| 345 | tb = telebot.TeleBot(TOKEN) |
| 346 | msg = tb.send_message(CHAT_ID, text, reply_markup=types.ForceReply()) |
| 347 | reply_msg = tb.reply_to(msg, text + ' REPLY') |
| 348 | |
| 349 | def process_reply(message): |
| 350 | assert msg.message_id == message.reply_to_message.message_id |
| 351 | |
| 352 | tb.register_for_reply(msg, process_reply) |
| 353 | |
| 354 | tb.process_new_messages([reply_msg]) |
| 355 | |
| 356 | def test_send_location(self): |
| 357 | tb = telebot.TeleBot(TOKEN) |
nothing calls this directly
no test coverage detected