1
0
mirror of https://gitlab.com/simple-stock-bots/simple-telegram-stock-bot.git synced 2025-07-25 23:51:32 +00:00

fixed environ vars since now theres more than 1

This commit is contained in:
2019-05-28 05:33:16 -07:00
parent 4da5d9933f
commit da5d071f34
2 changed files with 7 additions and 10 deletions

7
bot.py
View File

@@ -3,11 +3,10 @@ import logging
import os
import telegram
from functions import *
from telegram.ext import CommandHandler, Filters, MessageHandler, Updater
from functions import *
TOKEN = os.environ["TELEGRAM"]
TELEGRAM_TOKEN = os.environ["TELEGRAM"]
TICKER_REGEX = "[$]([a-zA-Z]{1,4})"
# Enable logging
@@ -76,7 +75,7 @@ def error(bot, update, error):
def main():
"""Start the bot."""
# Create the EventHandler and pass it your bot's token.
updater = Updater(TOKEN)
updater = Updater(TELEGRAM_TOKEN)
# Get the dispatcher to register handlers
dp = updater.dispatcher