mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-10-11 01:25:56 +00:00
Initial commit
This commit is contained in:
8
src/config/contents.py
Normal file
8
src/config/contents.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import re
|
||||
|
||||
# These are MarkdownV2 python-telegram-bot specific
|
||||
opted_in_successfully = re.escape('You have opted-in for everyone-mentions.')
|
||||
opted_in_failed = re.escape('You already opted-in for everyone-mentions.')
|
||||
opted_off_successfully = re.escape('You have opted-off for everyone-mentions.')
|
||||
opted_off_failed = re.escape('You need to opt-in first before processing this command.')
|
||||
mention_failed = re.escape('There are no users to mention.')
|
16
src/config/credentials.py
Normal file
16
src/config/credentials.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
load_dotenv()
|
||||
|
||||
bot_token = os.environ['bot_token']
|
||||
app_url = os.environ['app_url']
|
||||
port = os.environ['PORT']
|
||||
|
||||
firebaseConfig = {
|
||||
"apiKey": os.environ['firebase_apiKey'],
|
||||
"authDomain": os.environ['firebase_authDomain'],
|
||||
"databaseURL": os.environ['firebase_databaseURL'],
|
||||
"projectId": os.environ['firebase_projectId'],
|
||||
"storageBucket": os.environ['firebase_storageBucket'],
|
||||
}
|
9
src/config/handlers.py
Normal file
9
src/config/handlers.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from ..handlers.inHandler import InHandler
|
||||
from ..handlers.outHandler import OutHandler
|
||||
from ..handlers.mentionHandler import MentionHandler
|
||||
|
||||
handlers = [
|
||||
InHandler(),
|
||||
OutHandler(),
|
||||
MentionHandler()
|
||||
]
|
Reference in New Issue
Block a user