Skip to content

Commit

Permalink
fix poetry build default env file is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
msramalho committed Feb 8, 2024
1 parent d7f5415 commit 2a50385
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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.0.4"
version = "1.0.5"
description = "Check if phone numbers are connected to Telegram accounts."
authors = ["Bellingcat"]
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions telegram_phone_number_checker/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os, json, re
from telethon.sync import TelegramClient, errors, functions
from telethon.tl.types import InputPhoneContact
from dotenv import load_dotenv
from dotenv import load_dotenv, dotenv_values, find_dotenv
from getpass import getpass
import click

Expand Down Expand Up @@ -88,7 +88,7 @@ def show_results(output, res):
@click.option('--output', help='results filename, default to results.json', default="results.json", type=str)
def main_entrypoint(phone_numbers, api_id, api_hash, api_phone_number, output):
"""Check to see if one or more phone numbers belong to a valid Telegram account"""
load_dotenv()
load_dotenv(".env")
client = login(api_id, api_hash, api_phone_number)
res = validate_users(client, phone_numbers)
show_results(output, res)
Expand Down

0 comments on commit 2a50385

Please sign in to comment.