Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ cover/
local_settings.py
db.sqlite3
db.sqlite3-journal
myfile.db

# Flask stuff:
instance/
Expand Down
5 changes: 5 additions & 0 deletions src/platforms/telegram/starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
from repositories.telegram import TelegramRepository
from utils.validations import regex_validation

HELP_TEXT = """
insure to have a channel and a bot, and add the bot to your channel as an admin.
get your bot token from @BotFather and your channel id from @username_to_id_bot
"""

def telegram_starter() -> tuple[str, str]:
print(HELP_TEXT)
while True:
bot_token = input("Enter Your Bot Token: ")
if not regex_validation(pattern=TELEGRAM_BOT_TOKEN_REGEX, string=bot_token):
Expand Down