mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-10-18 02:32:54 +00:00
Empty commit
This commit is contained in:
@@ -8,8 +8,6 @@ load_dotenv()
|
||||
|
||||
bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN"))
|
||||
|
||||
# remove previous webhook
|
||||
bot.remove_webhook()
|
||||
|
||||
# configure the webhook for the bot
|
||||
bot.set_webhook(
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import os
|
||||
|
||||
import flask
|
||||
import telebot
|
||||
|
||||
@@ -28,8 +26,3 @@ def webhook():
|
||||
return ""
|
||||
else:
|
||||
flask.abort(403)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
port = int(os.environ.get("PORT", 33507))
|
||||
app.run(host="0.0.0.0", port=port)
|
||||
|
||||
Reference in New Issue
Block a user