from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor
from config import TOKEN
bot = Bot(token=TOKEN)
dp = Dispatcher(bot)
All of our paid plans come with a no-quibble 30-day money-back guarantee — you're billed monthly and you can cancel at any time. The minimum contract length is just one month. You get unrestricted Internet access from your applications, unlimited in-browser Python, Bash and database consoles, and full SSH access to your account. All accounts (including free ones) have screen-sharing with other PythonAnywhere accounts, and free SSL support (though you'll need to get a certificate for your own domains).Как-то расплывчато.. А ты принтовал хуки?
# -*- coding: utf-8 -*-
from flask import Flask
from flask import Response
from flask import request
from flask_sslify import SSLify
app = Flask(__name__)
sslify = SSLify(app)
@app.route('/', methods=['POST'])
def get_updates_from_webhook():
update = telebot.types.Update.de_json(request.stream.read().decode('utf-8'))
bot.process_new_updates([update])
return 'ok', 200
app.run(host='127.0.0.1', port=5003)
WEBAPP_HOST = '127.0.0.1' # or ip
WEBAPP_PORT = 5003