Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosplanchon committed Oct 22, 2019
1 parent 96be59f commit d107969
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

```
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand All @@ -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"
Expand Down
3 changes: 2 additions & 1 deletion telegramgetbotip/telegramgetbotip.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d107969

Please sign in to comment.