Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
NoFearJoe committed Jun 20, 2017
2 parents 4dcd7d4 + c0ee63c commit 2378edc
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,37 @@
# TelegramFeedback
Simple framework for adding Telegram feedback in an iOS App

## Installation
#### CocoaPods
Paste this code to your Podfile:
```
pod 'TelegramFeedback'
```

## Creating Telegram channel
#### Creating bot
* Find the user 'BotFather'
* Send ``` /start ```
* Send ``` /newbot ```
* Follow instructions
#### Creating a channel
* Create 'New Channel'
* Add the created bot to the channel admins

## Usage
First, create an instance of TelegramFeedback:
```
let feedback = TelegramFeedback(chatID: "some_channel_id", botName: "some_bot_name")
```
Then call the method 'sendMessage' to send feedback to the channel:
```
feedback.sendMessage("Some message")
```
or:
```
feedback.sendMessage("Some message") { error in
print(error)
}
```

## Gratz

0 comments on commit 2378edc

Please sign in to comment.