skip to Main Content

Async Errors in python – Telegram API

I'm coding a telegram userbot (with telethon) which sends a message,every 60 seconds, to some chats. I'm using 2 threads but I get the following errors: "RuntimeWarning: coroutine 'sender' was never awaited" and "no running event loop". My code: ....…

VIEW QUESTION

One Lettuce Redis connection per servlet?

In a servlet, should Lettuce Redis connections be created in init() and shutdown in destroy() or should a connection be created for every request (in doPost or doGet?) I am using sync RedisCommands (connection.sync()) Lettuce states: Lettuce is thread-safe by…

VIEW QUESTION
Back To Top
Search