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

Method test_send_message_with_markup

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

Source from the content-addressed store, hash-verified

284 assert ret_msg.message_id
285
286 def test_send_message_with_markup(self):
287 text = 'CI Test Message'
288 tb = telebot.TeleBot(TOKEN)
289 markup = types.ReplyKeyboardMarkup()
290 markup.add(types.KeyboardButton("1"))
291 markup.add(types.KeyboardButton("2"))
292 ret_msg = tb.send_message(CHAT_ID, text, disable_notification=True, reply_markup=markup)
293 assert ret_msg.message_id
294
295 def test_send_message_with_markup_use_string(self):
296 text = 'CI Test Message'

Callers

nothing calls this directly

Calls 2

addMethod · 0.95
send_messageMethod · 0.95

Tested by

no test coverage detected