fix: Attachment not sending to bots message creation (#5353)

This commit is contained in:
Chamath K.B. Attanayaka 2022-09-29 01:43:29 +05:30 committed by GitHub
parent fcb9a9ab0c
commit 6b47c7b43d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,