def test_sendMessage_broken_markdown(self): if USER_TEST: bot = TelegramHigh(self.BOT_TOKEN) bot.sendMessage(self.chat_id, "hello\nNice to*meet you! 8", markdown=True) bot.sendMessage(self.chat_id, "hello\nNice to_meet you! 8", markdown=True) bot.sendMessage(self.chat_id, "hello\nNice to`meet you! 8", markdown=True) bot.sendMessage(self.chat_id, "hello\nNice to[meet() you! 8", markdown=True)
def test_isDocument(self): if USER_INTERACTION_TEST: bot = TelegramHigh(self.BOT_TOKEN) bot.sendMessage(self.chat_id, "Send a *photo*!", markdown=True) self.assertFalse(bot.isDocument(self.awaitUpdates(bot))) bot.sendMessage(self.chat_id, "Send a *file*!", markdown=True) self.assertTrue(bot.isDocument(self.awaitUpdates(bot))) bot.sendMessage(self.chat_id, "Send a *message*!", markdown=True) self.assertFalse(bot.isDocument(self.awaitUpdates(bot)))
def test_sendMessage_big(self): if USER_TEST: bot = TelegramHigh(self.BOT_TOKEN) bot.sendMessage(self.chat_id, "0"*10000)
def test_sendMessage(self): if USER_TEST: bot = TelegramHigh(self.BOT_TOKEN) bot.sendMessage(self.chat_id, "abcde")