fix: Attachment not sending to bots message creation (#5353)
This commit is contained in:
parent
fcb9a9ab0c
commit
6b47c7b43d
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ class Telegram::IncomingMessageService
|
||||||
set_contact
|
set_contact
|
||||||
update_contact_avatar
|
update_contact_avatar
|
||||||
set_conversation
|
set_conversation
|
||||||
@message = @conversation.messages.create!(
|
@message = @conversation.messages.build(
|
||||||
content: params[:message][:text].presence || params[:message][:caption],
|
content: params[:message][:text].presence || params[:message][:caption],
|
||||||
account_id: @inbox.account_id,
|
account_id: @inbox.account_id,
|
||||||
inbox_id: @inbox.id,
|
inbox_id: @inbox.id,
|
||||||
|
|
Loading…
Reference in a new issue