Fix bug
This commit is contained in:
parent
4e4e2a2550
commit
1378aa6763
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ private
|
|||
def handle_chat(chat)
|
||||
return if chat.blank?
|
||||
|
||||
telegram_chat = TelegramChat.first_or_initialize remote_id: chat[:id]
|
||||
telegram_chat = TelegramChat.where(remote_id: chat[:id]).first_or_initialize
|
||||
|
||||
telegram_chat.chat_type = chat[:type]
|
||||
telegram_chat.title = chat[:title]
|
||||
|
|
Reference in a new issue