MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / test_register_for_reply

Method test_register_for_reply

tests/test_telebot.py:343–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 4

send_messageMethod · 0.95
reply_toMethod · 0.95
register_for_replyMethod · 0.95
process_new_messagesMethod · 0.95

Tested by

no test coverage detected