From d10796927b5d4f7fc9deee8289e783e545ff4cdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20A=2E=20Planch=C3=B3n?= Date: Tue, 22 Oct 2019 17:27:54 -0300 Subject: [PATCH] Add files via upload --- README.md | 3 +++ setup.py | 4 ++-- telegramgetbotip/telegramgetbotip.py | 3 ++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c4e5fc..a1332fb 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,9 @@ optional arguments: The Bot Token file must contain the bot ID in plain text. The ids's file must contain an ID in each line of the document (separated by "\n") +You can get your Telegram ID from @userinfobot +You can register your Telegram Bot from @BotFather + From the interpreter: ``` diff --git a/setup.py b/setup.py index d0f7fd5..e37b0fa 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ "telegramgetbotip = telegramgetbotip.__main__:main" ] }, - version="0.1.1", + version="0.1.2", license="GPL3", description="Python3 telegram bot to retrieve public IP " "of the Telegram bot's host machine.", @@ -24,7 +24,7 @@ author_email="bubbledoloresuruguay2@gmail.com", url="https://github.com/carlosplanchon/telegramgetbotip", download_url="https://github.com/carlosplanchon/" - "telegramgetbotip/archive/v0.1.1.tar.gz", + "telegramgetbotip/archive/v0.1.2.tar.gz", keywords=["telegram", "bot", "ip", "networking"], install_requires=[ "telepot" diff --git a/telegramgetbotip/telegramgetbotip.py b/telegramgetbotip/telegramgetbotip.py index b257068..ae2bca9 100644 --- a/telegramgetbotip/telegramgetbotip.py +++ b/telegramgetbotip/telegramgetbotip.py @@ -49,7 +49,8 @@ def message_handler(self, msg: Dict[Any, Any]) -> None: time_since_last_query = time() - last_query needs_to_wait = self.time_between_queries\ - time_since_last_query - resp = f"Wait {int(needs_to_wait)} to query again." + resp = f"Wait {int(needs_to_wait)} second(s) "\ + "to query again." if query_enabled: try: