Skip to content

Instantly share code, notes, and snippets.

@samirsaci
Last active March 8, 2021 22:07
Show Gist options
  • Save samirsaci/483a6dd4c70141c932f926b64eaf21dc to your computer and use it in GitHub Desktop.
Save samirsaci/483a6dd4c70141c932f926b64eaf21dc to your computer and use it in GitHub Desktop.
Telegram Bot - Import Libs
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