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

Simple framework for adding Telegram feedback in an iOS App

License

Notifications You must be signed in to change notification settings

NoFearJoe/TelegramFeedback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple framework for adding Telegram feedback in an iOS App

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published