Skip to content
Advertisement

Tag: telegram-bot

Create success hook with telegram-bot alert

I’m new in Dagster and try to create success hook that will send alerts through a telegram bot. Need help, please Resource: Hook: Job: Error: dagster._check.CheckError: Member of set mismatches type. Expected <class ‘dagster._core.definitions.hook_definition.HookDefinition’>. Got <function success_hook at 0x00000284AC2BB250> of type <class ‘function’>. UPDATE: Job: Hook: New Error: TypeError: telegram_resource..TelegramConnection.send_message() takes 1 positional argument but 2 were given Stack Trace:

Reply to a Python Telegram bot message

Please tell me how you can call the bot’s response to any message in the feedback bot. By example: User: /start Bot: Welcome message (Hello) User: any message Bot: Feedback message (Expect an answer) I tried to do it through the echo function, but most likely I made a mistake somewhere. I am attaching the code: main.py: settings.py: handlers.py: I

How to nullify python asyncio global variables?

I am writing a personal Telegram Bot to collect statistics on my accounts market.csgo.com. The main task of the bot is to send async requests to the API and display information via Telegram. Everything works as it should, but the problem is with global variables, or rather, their incorrect counting. An example of one of my functions: Function result: Bot

TraceBack Cannot connect to host api.telegram.org:443

I wrote a telegram bot on the aiogram framework. The bot worked fine for over a week, with no problems. The customer started complaining about the bot freezing. I downloaded the log file and saw a bunch of different TraceBacks. This situation has been happening for two days now. List of 3 TraceBacks, for example: First Second Third On my

Advertisement