                             data-type]
              to            (get-in contacts [chat-id :address])
              jail-params   {:parameters params
-                            :context (generate-context db chat-id to)}] 
-         {:chat-fx/call-jail {:jail-id jail-id
-                              :path path
-                              :params jail-params
+                            :context (generate-context db chat-id to group-id)}]
+         {:chat-fx/call-jail {:jail-id                 jail-id
+                              :path                    path
+                              :params                  jail-params
                               :callback-events-creator (fn [jail-response]
                                                          [[::jail-command-data-response
                                                            jail-response message data-type]])}})


(defn generate-context
  "Generates context for jail call"
  [{:keys [chats] :accounts/keys [current-account-id]} chat-id to]
  (merge {:platform platform/platform
          :from     current-account-id
          :to       to
          :chat     {:chat-id    chat-id
                     :group-chat (get-in chats [chat-id :group-chat])}}
         i18n/delimeters))

;;;; Coeffects

 [trim-v]
 (fn [{:keys [db]}
      [{{:keys [command content-command params type]} :content
        :keys [chat-id jail-id group-id] :as message}
       data-type]]
   (let [{:keys          [chats]
          :accounts/keys [current-account-id]
          :contacts/keys [contacts]} db
         jail-id (or jail-id chat-id)
