TelegramStickersImport — Telegram stickers importing SDK for iOS

Overview

TelegramStickersImport — Telegram stickers importing SDK for iOS

TelegramStickersImport helps your users import third-party programaticaly created sticker sets into Telegram Messenger for iOS.

Please read the full documentation here: https://core.telegram.org/import-stickers

WARNING: Each time a user imports stickers, a new sticker pack is created on Telegram. Do not use the importing feature to share stickers you made with other users. If you want to share your stickers, simply upload them using @stickers, then share the link of your pack. For example, here's a link to install some Duck Stickers.

Installation

Installing using Cocoapods

To install TelegramStickersImport via Cocoapods add the following to your Podfile:

target 'MyApp' do
pod 'TelegramStickersImport' 
end

then run pod install in your project root directory.

Installing using Carthage

Add the following line to your Cartfile:

github "telegrammessenger/TelegramStickersImport"

then run carthage update, and you will get the latest version of TelegramStickersImport in your Carthage folder.

Installing using Swift Package Manager

Go to File > Swift Packages > Add Package Dependency... in Xcode and search for TelegramStickersImport.

Project Setup

Configure Your Info.plist

Configure your Info.plist by right-clicking it in Project Navigator, choosing Open As > Source Code and adding this snippet:

<key>LSApplicationQueriesSchemeskey>
<array>
<string>tgstring>
array>

Usage

To import a sticker set of a single sticker to Telegram, add the following code to your app:

import TelegramStickersImport
 
let stickerSet = StickerSet(software: "Example Software", isAnimated: false)
let yourStickerImage = UIImage()
if let stickerData = Sticker.StickerData(image: yourStickerImage) {
    try? staticStickerSet.addSticker(data: .image(pngData), emojis: ["😎"])
}
stickerSet.import()

License

TelegramStickersImport is available under the MIT license. See the LICENSE file for more info.

Comments
  • Не работает экспорт в телеграм анимированных стикеров.

    Не работает экспорт в телеграм анимированных стикеров.

    Добрый день. Критичный баг с экспортом в телеграм. Устройство iphone SE(первое поколение) ios 14.8. На других устройствах не смотрел. Если экспортировать стикеры(анимированные) в телеграм, а мобильное приложение телеграма было не запущено ранее, то в телеграме невозможно произвести экспорт(отображается два меню с экспортом и при создании ссылки вечно крутится троббер). При повторной попытке экспортировать при уже запущенном телеграме все работает корректно. Прикладываю видео. Воспроизвести баг можно тут

    https://user-images.githubusercontent.com/1859216/138050951-cc00a5f2-0217-4bbb-b454-9b2f744654a4.mp4

    opened by stayf 2
  • Check emojis are present

    Check emojis are present

    Currently, if emoji is missing, sticker set is sent to Telegram.app without raising an error. Telegram doesn't show any error either, but import is stuck at 100% indefinitely.

    If emojis array is empty for a sticker, addSticker(data:, emoji:) should raise an error.

    opened by nikstar 1
  • Fix readme code example

    Fix readme code example

    Fix typo in example:

    Before:

    if let stickerData = Sticker.StickerData(image: yourStickerImage) {
        try? staticStickerSet.addSticker(data: .image(pngData), emojis: ["😎"])
    }
    stickerSet.import()
    

    After:

    if let stickerData = Sticker.StickerData(image: yourStickerImage) {
        try? stickerSet.addSticker(data: stickerData, emojis: ["😎"])
    }
    try? stickerSet.import()
    
    opened by nmtitov 1
  • Added Support for SPM(Swift Package Manager)

    Added Support for SPM(Swift Package Manager)

    Added missing Package.swift for SPM and minor improvements. Publishing a new Release version (ex: 1.0.1) is needed for swift package manager to work completely ✌️

    opened by Rminsh 1
  • SPM support broken?

    SPM support broken?

    When installing via SPM I get the following error:

    /Package.swift has no Package.swift manifest for version 1.0.0 in https://github.com/TelegramMessenger/TelegramStickersImport
    

    Looks like Package.swift is missing?

    opened by nmtitov 1
  • iOS - Works if Telegram is in background

    iOS - Works if Telegram is in background

    If telegram is not in the background and it's killed the export doesn't work. Telegram appears, i tap on "Create a new Sticker Set" in the telegram app, then the prompt where the user should insert the name of the pack appears -> I insert the name but doesn't go on from there.

    Everything ok if the Telegram is running in the background

    opened by DanielZanchi 0
Releases(1.1.0)
Px-mobile-sdk-demo-app - PerimeterX Mobile SDK - Demo App

About PerimeterX PerimeterX is the leading provider of application security solu

PerimeterX 1 Nov 20, 2022
Alter SDK is a cross-platform SDK consisting of a real-time 3D avatar system, facial motion capture, and an Avatar Designer component built from scratch for web3 interoperability and the open metaverse.

Alter SDK is a cross-platform SDK consisting of a real-time 3D avatar system, facial motion capture, and an Avatar Designer component built from scratch for web3 interoperability and the open metaverse.

Alter 45 Nov 29, 2022
Native iOS implementation of RadarCOVID tracing client using DP3T iOS SDK

RadarCOVID iOS App Introduction Native iOS implementation of RadarCOVID tracing client using DP3T iOS SDK Prerequisites These are the tools used to bu

Radar COVID 146 Nov 24, 2022
Muxer used on top of Feed iOS SDK for airplay

FeedAirplayMuxer Muxer used on top of Feed iOS SDK for airplay purposes. Demo Project --> https://github.com/feedfm/AirplayDemo Feed Airplay Muxer is

Feed Media 0 May 6, 2022
Basispay IOS SDK Version 2

BasisPay-IOS-KIT BasisPay IOS Payment Gateway kit for developers INTRODUCTION This document describes the steps for integrating Basispay online paymen

null 0 Oct 21, 2021
Release repo for Gini Bank SDK for iOS

Gini Bank SDK for iOS The Gini Bank SDK provides components for capturing, reviewing and analyzing photos of invoices and remittance slips. By integra

Gini GmbH 1 Dec 6, 2022
Da Xue Zhang Platform Lvb iOS SDK

Cloud_Lvb_SDK iOS API Reference Dxz Meeting iOS SDK是为 iOS 平台用户音视频服务的开源 SDK。通过大学长开放平台自研RTC,RTM系统,为客户提供质量可靠的音视频服务。 类 类名 描述 CLS_PlatformManager SDK的音视频主要

null 8 Jan 10, 2022
PayPal iOS SDK

PayPal iOS SDK Welcome to PayPal's iOS SDK. This library will help you accept card, PayPal, Venmo, and alternative payment methods in your iOS app. Su

PayPal 25 Dec 14, 2022
Unofficial Notion API SDK for iOS & macOS

NotionSwift Unofficial Notion SDK for iOS & macOS. This is still work in progress version, the module interface might change. API Documentation This l

Wojciech Chojnacki 59 Jan 8, 2023
Spotify SDK for iOS

Spotify iOS SDK Overview The Spotify iOS framework allows your application to interact with the Spotify app running in the background on a user's devi

Spotify 522 Jan 6, 2023
Headless iOS/Mac SDK for saving stuff to Pocket.

This SDK is deprecated Howdy all! ?? Thanks for checking out this repo. Your ?? mean a lot to us. ?? Unfortunately, this project is deprecated, and th

Pocket 230 Mar 18, 2022
Evernote Cloud SDK for iOS

Evernote Cloud SDK 3.0 for iOS This is the official Evernote SDK for iOS. To get started, follow the instructions bellow. Additional information can b

Evernote 256 Oct 6, 2022
iOS SDK for the Box Content API

Box iOS SDK Getting Started Docs: https://developer.box.com/guides/mobile/ios/quick-start/ NOTE: The Box iOS SDK in Objective-C (prior to v3.0.0) has

Box 112 Dec 19, 2022
OneDrive SDK for iOS

Get started with the OneDrive SDK for iOS Integrate the OneDrive API into your iOS app! 1. Installation Install via Cocoapods Install Cocoapods - Foll

OneDrive 101 Dec 19, 2022
Stripe iOS SDK

Stripe iOS SDK The Stripe iOS SDK makes it quick and easy to build an excellent payment experience in your iOS app. We provide powerful and customizab

Stripe 1.8k Jan 5, 2023
AWS SDK for iOS. For more information, see our web site:

AWS SDK for iOS The AWS SDK for iOS provides a library and documentation for developers to build connected mobile applications using AWS. Features / A

AWS Amplify 1.6k Dec 26, 2022
Zendesk Mobile SDK for iOS

⚠️ This Repository has been deprecated, please go to here for the Zendesk Support SDK ⚠️ Zendesk Mobile SDK for iOS Zendesk SDK for mobile is a quick,

Zendesk 113 Dec 24, 2022
PlayKit: Kaltura Player SDK for iOS

Kaltura Player SDK Demo: Demo repo. If you are a Kaltura customer, please contact your Kaltura Customer Success Manager to help facilitate use of this

Kaltura 77 Jan 3, 2023
Uber Rides iOS SDK (beta)

Uber Rides iOS SDK This Swift library allows you to integrate the Uber Rides API into your iOS app. Requirements iOS 8.0+ Xcode 10.0+ Swift 4.2+ Insta

Uber Open Source 343 Jan 4, 2023