1
0
Fork 0
This commit is contained in:
Alex Kotov 2018-12-07 08:28:34 +05:00
parent 4e4e2a2550
commit 1378aa6763
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

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