Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nofearjoe/telegramfeedback
Simple framework for adding Telegram feedback in an iOS App
https://github.com/nofearjoe/telegramfeedback
feedback swift telegram
Last synced: 2 months ago
JSON representation
Simple framework for adding Telegram feedback in an iOS App
- Host: GitHub
- URL: https://github.com/nofearjoe/telegramfeedback
- Owner: NoFearJoe
- License: mit
- Created: 2017-06-19T14:15:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T07:56:34.000Z (over 7 years ago)
- Last Synced: 2024-10-28T14:12:22.859Z (3 months ago)
- Topics: feedback, swift, telegram
- Language: Swift
- Size: 9.77 KB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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