@bot.on.chat_message()
async def message_handler(message: Message):
await message.answer("Тест!")
@bot.on.chat_message()
async def message(message: Message):
print("Тестовый PRINT")
if message.text=="тест":
await message_handler(message)
def main():
original_file = "pp-complete.csv"
with open(original_file, encoding="UTF-8", newline="") as of:
reader = csv.reader(of)
for row in reader:
Transaction_ID, Price, Date_of_Transfer, Postcode, Property_Type, Old_or_New, Duration,
PAON, SAON, Street, Locality, Town_or_City,
District, County, PPD_Category_Type, Record_Status = row
# что-то делаешь дальше именно с этой с одной строкой
# и идёшь дальше
.text.strip().replace(chr(160), " ")
import re
int(re.sub(r"[^\d]+", "", item.find("div", class_ = "css-1dv8s3l eyvqki91").text))
results = []
results.append(f"{site}: {port} порт активен")
with open('res.txt', 'a', encoding='UTF-8') as f:
f.write("\n".join(results))