I have a problem with fsm using aiogram with Fastapi. I ran the code from aiogram_fsm_example, but changed the long-polling to the Fastapi implementation. Here's the code I've got:
import logging
from fastapi import FastAPI, Request
import…
I have developed an application that works well in "asynchronous mode" and performs calculations. When the calculations meet certain criteria, a function of a "Telegram bot" is called to send the results to the bot, while the calculations continue…
After scanning the web (myself and using ChatGPT), I didn't find a way of handling the emoji reactions users can react with to my bot's messages. I want to create a feedback mechanism for bot behaviour using intuitive reactions such as like &…
i have a bot which parses some links given by user. When clients want to parse realy huge amount of links, bot parses them, creates csv file from those links, sends it to user(user can download and view this file) and then raise TimeoutError
Cause…
I am currently working on a new project which makes use of the Telegram bot. Yet, I am new to the Telegram bot, and I'm trying hard to learn new things. The project includes creating a multi-level list with displaying buttons that perform a specific…
I am writing a telegram bot using aiogram. Help to implement the code to show the user a message with inline keyboard of 13 buttons and the user has an opportunity to choose 3 options and on the basis of this choice he will get a message in which…
I create a bot that notifies the user at certain times, but from time to time gives this error
dispatcher.py [LINE:390] ERROR | 2022-10-03 04:10:16,846 : Cause exception while getting updates.
Traceback (most recent call last):
File…
So, How can I can get results in aiogram, Telegram bot. For example, there are 30 quizzes and someone solves these quizzes and at the end bot should send the result: "You solved the question: 30/15".
Does anybody know how I can code this?
I need my bot to do specific things when an user is joining end exiting a group. First, I write proof-of-concept code:
@dp.chat_member_handler()
async def user_joined_chat(update: types.ChatMemberUpdated):
print('Users changed')
But that does…
I have a simple chat-bot writed with aiogram for receiving messages from users and answering to them. I want to make sure that user is subscribed to a particular channel before he can use my bot. How can I implement that?
I am writing a telegram bot on the aiogram framework. Everything was good when I run it, but today I am getting error,Cannot connect to host api.telegram.org:443 ssl:default I do not know what's problem.
I am using Ubuntu 20.04.2 LTS
Here is the…
@dp.message_handler(lambda message: message.entities != [] and message.chat.id)
async def delete_messages(message: types.Message):
for entity in message.entities:
if entity.type in ["url", "text_link"]:
await…
I used the library aioschedule to send autoscheduled messages to concrete users in telegram bot. The logic is: if the column 'alert' in y_data is 1, the alert will be sent to users from the list GOOD_ID.
The error is:
ERROR:asyncio:Task exception…