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)))