Skip to content

Commit

Permalink
Merge pull request #222 from MikiEremiki/develop
Browse files Browse the repository at this point in the history
fix: Исправить message_thread_id для send_action
  • Loading branch information
MikiEremiki authored Dec 9, 2024
2 parents df5950c + 4ff1376 commit f8e36d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/handlers/main_hl.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async def update_ticket(update: Update, context: ContextTypes.DEFAULT_TYPE):
try:
await update.effective_chat.send_action(
ChatAction.TYPING,
message_thread_id=update.message.message_thread_id)
message_thread_id=update.effective_message.message_thread_id)
except TimedOut as e:
main_handlers_logger.error(e)

Expand Down Expand Up @@ -424,7 +424,7 @@ async def confirm_reserve(update: Update, context: ContextTypes.DEFAULT_TYPE):
try:
await update.effective_chat.send_action(
ChatAction.TYPING,
message_thread_id=update.message.message_thread_id)
message_thread_id=message_thread_id)
except TimedOut as e:
main_handlers_logger.error(e)

Expand Down Expand Up @@ -533,7 +533,7 @@ async def reject_reserve(update: Update, context: ContextTypes.DEFAULT_TYPE):
try:
await update.effective_chat.send_action(
ChatAction.TYPING,
message_thread_id=update.message.message_thread_id)
message_thread_id=message_thread_id)
except TimedOut as e:
main_handlers_logger.error(e)

Expand Down Expand Up @@ -615,7 +615,7 @@ async def confirm_birthday(update: Update, context: ContextTypes.DEFAULT_TYPE):
try:
await update.effective_chat.send_action(
ChatAction.TYPING,
message_thread_id=update.message.message_thread_id)
message_thread_id=message_thread_id)
except TimedOut as e:
main_handlers_logger.error(e)

Expand Down Expand Up @@ -722,7 +722,7 @@ async def reject_birthday(update: Update, context: ContextTypes.DEFAULT_TYPE):
try:
await update.effective_chat.send_action(
ChatAction.TYPING,
message_thread_id=update.message.message_thread_id)
message_thread_id=message_thread_id)
except TimedOut as e:
main_handlers_logger.error(e)

Expand Down

0 comments on commit f8e36d1

Please sign in to comment.