Last active
March 8, 2021 22:07
-
-
Save samirsaci/483a6dd4c70141c932f926b64eaf21dc to your computer and use it in GitHub Desktop.
Telegram Bot - Import Libs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import os | |
from telegram import ReplyKeyboardMarkup, ReplyKeyboardRemove, Update | |
from telegram.ext import ( | |
Updater, CommandHandler, MessageHandler, Filters, ConversationHandler, CallbackContext | |
) | |
from scrapping import * | |
from mail import * | |
import requests | |
# My Token | |
TOKEN = 'YOUR-BOT-TOKEN' | |
# Heroku App | |
APP_NAME = 'https://your-heroku-app.herokuapp.com/' | |
# Port | |
PORT = int(os.environ.get('PORT', '8443')) | |
# Enable logging | |
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', | |
level=logging.INFO) | |
logger = logging.getLogger(__name__) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment