question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot reply twice

See original GitHub issue

Context

  • Operating System: Fedora Linux 32
  • Python Version: 3.8.6
  • aiogram version: 2.11.2
  • aiohttp version: 3.7.3
  • uvloop version (if installed): not installed

Expected Behavior

I send the bot a line and it replies with two lines.

Current Behavior

When I make a simple echo-bot like in the example, everything works. When I add another await message.answer(), the bot replies the first time, but not again.

Failure Information (for bugs)

This locking occurs when there is a second await in the processing function, whether it’s calling a method of aiogram, aiosqlite or even another async function with nothing aio-related inside.

Steps to Reproduce

from aiogram import Bot, Dispatcher, executor

bot = Bot(token='my_token')
dp = Dispatcher(bot)


@dp.message_handler()
async def echo(message):
    await message.reply('ok!')
    await message.answer('op')


if __name__ == '__main__':
    executor.start_polling(dp, skip_updates=True)

Failure Logs

There is nothing relevant in the logs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
evgfilim1commented, Mar 21, 2022

Closing as inactive. Feel free to comment here if it’s still reproducible.

0reactions
evgfilim1commented, Mar 14, 2021

@Zverik Is it still reproducible?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why are my sent messages showing up twice?
I had ended up fixing the problem by going to: Outlook options> Mail > Save Messages > Uncheck "Save copies of messages in...
Read more >
Can you send an email about twice if a person doesn't ... - Quora
No. It's because of the way the email is sent through their e-mailing system. They tell you not to reply because no one...
Read more >
imessage no reply option - Apple Support Communities
i can't reply to imessages. This has been going on for a while. if i double tap,the message i want to reply to,...
Read more >
How To Kill Reply-All Email Chains Before They Start
Here are two ways to keep reply-all chains from taking over your life. One tip is for senders of mass emails. The other...
Read more >
Gmail: Responding to Email - GCF Global
Manage Gmail replies and learn the various options for replying to Gmail messages in ... vacation reply so people know you're unable to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found