Skip to content

Commit

Permalink
ensures telegram client is disconnected and the event loop can close
Browse files Browse the repository at this point in the history
  • Loading branch information
msramalho committed Apr 15, 2024
1 parent 874b5ef commit 49f657f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "telegram-phone-number-checker"
version = "1.1.0"
version = "1.2.0"
description = "Check if phone numbers are connected to Telegram accounts."
authors = ["Bellingcat"]
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions telegram_phone_number_checker/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ async def run_program(
client = await login(api_id, api_hash, api_phone_number)
res = await validate_users(client, phone_numbers)
show_results(output, res)
client.disconnect()


if __name__ == "__main__":
Expand Down

0 comments on commit 49f657f

Please sign in to comment.