I have started a simple bot with two message handlers, one of them is echo function and second one to respond for a command, just to check how it is working in pythonanywhere. Everything is working fine, but after I have run my script I tried to stop it and so I tried to killed my task in task section. Now it is written that I don't have any running tasks, but my bot is still running. So how can I stop my bot?
I have deleted file of my bot from file section, and also I have disabling web
Here is my cod:
from flask_sslify import SSLify
from flask import Flask
from aiogram import Bot, types, executor, Dispatcher
PROXY_URL = "http://proxy.server:3128"
app = Flask(__name__)
sslify = SSLify(app)
bot1= Bot(token='token', proxy=PROXY_URL)
dp1=Dispatcher(bot1)
def on_startup1():
print("Бот 1 вышел в онлайн")
@dp1.message_handler(commands=['Подивитись'])
async def check_info_from_database(message: types.message):
await bot1.send_message(user_id, "Some text")
@dp1.message_handler()
async def echo(message: types.message):
await message.answer(message.text)
executor.start_polling(dp1, skip_updates=True, on_startup=on_startup1())