Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
FabrizioBrancati committed May 5, 2018
2 parents 956ca6a + c5c73b8 commit f4c3969
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.<br>
---

### 2.x Releases
- `2.3.x` Releases - [2.3.0](#230---swift-4-support) | [2.3.1](#231---minor-improvements) | [2.3.2](#232---graph-api-30)
- `2.3.x` Releases - [2.3.0](#230---swift-4-support) | [2.3.1](#231---minor-improvements) | [2.3.2](#232---graph-api-30) | [2.3.3](#233---facebook-requirements)
- `2.2.x` Releases - [2.2.0](#220---vaporizer)
- `2.1.x` Releases - [2.1.0](#210---big-greetings)
- `2.0.x` Releases - [2.0.0](#200---sell-me-something)
Expand All @@ -21,6 +21,13 @@ All notable changes to this project will be documented in this file.<br>

---

## [2.3.3](https://github.com/FabrizioBrancati/SwiftyBot/releases/tag/2.3.3) - Facebook Requirements
### 5 May 2018
### Added
Adding `messaging_type` string in JSON response

---

## [2.3.2](https://github.com/FabrizioBrancati/SwiftyBot/releases/tag/2.3.2) - Graph API 3.0
### 4 May 2018
### Improved
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/FabrizioBrancati/SwiftyBot.svg?branch=master)](https://travis-ci.org/FabrizioBrancati/SwiftyBot)
[![codebeat badge](https://codebeat.co/badges/ff777248-e375-4c6d-8a77-4475c2bc9ae1)](https://codebeat.co/projects/github-com-fabriziobrancati-swiftybot-master)
[![Version](https://img.shields.io/badge/version-2.3.2-blue.svg)](https://developer.apple.com/swift/)
[![Version](https://img.shields.io/badge/version-2.3.3-blue.svg)](https://developer.apple.com/swift/)
[![Language](https://img.shields.io/badge/language-Swift%204.0-orange.svg)](https://developer.apple.com/swift/)
[![Platform](https://img.shields.io/badge/platform-Linux%20/%20macOS-ffc713.svg)](https://developer.apple.com/swift/)
[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/FabrizioBrancati/SwiftyBot/blob/master/LICENSE)
Expand Down
1 change: 1 addition & 0 deletions Sources/SwiftyBot/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ droplet.post("messenger", messengerSecret) { request in
/// At Step 6 of Facebook Messenger Quick Start guide, using Node.js demo, they told you to send back the "recipient.id", but the correct one is "sender.id".
/// https://developers.facebook.com/docs/messenger-platform/guides/quick-start#send_text_message
var responseData: JSON = JSON()
try responseData.set("messaging_type", "RESPONSE")
try responseData.set("recipient", ["id": senderID])
try responseData.set("message", response)

Expand Down

0 comments on commit f4c3969

Please sign in to comment.