mirror of
https://github.com/andwati/unsplash-bot.git
synced 2026-11-24 11:38:47 +00:00
Empty commit
This commit is contained in:
@@ -8,8 +8,6 @@ load_dotenv()
|
|||||||
|
|
||||||
bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN"))
|
bot = telebot.TeleBot(os.getenv("TELEGRAM_TOKEN"))
|
||||||
|
|
||||||
# remove previous webhook
|
|
||||||
bot.remove_webhook()
|
|
||||||
|
|
||||||
# configure the webhook for the bot
|
# configure the webhook for the bot
|
||||||
bot.set_webhook(
|
bot.set_webhook(
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import os
|
|
||||||
|
|
||||||
import flask
|
import flask
|
||||||
import telebot
|
import telebot
|
||||||
|
|
||||||
@@ -28,8 +26,3 @@ def webhook():
|
|||||||
return ""
|
return ""
|
||||||
else:
|
else:
|
||||||
flask.abort(403)
|
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