Since each platform handles attachments differently, we recommend the use of @user.platform method to handle this separately, as in the following example:
classMainContext<Conversationdefblocks any_attachment do|attachments|if @user.platform =="messenger"#Handle attachments param for Messengerelsif @user.platform =="telegram"#Handle attachments param for Telegramelsif @user.platform =="whatsapp"#Handle attachments param for WhatsAppendendendend