TelegramStickersImport class
Android:
For creating sticker data you should use StickerData.android method
To import stickers from android, you need to build the correct path to the files. The easiest way is to put the necessary files into the cache directory in the telegram_stickers_import folder.
You can get the path to the cache folder by calling
getTemporaryDirectory()
method of https://pub.dev/packages/path_provider
plugin. After that, just add stickers files to the
telegram_stickers_import` folder inside cache directory.
All the necessary settings for this folder have already been made by the
plugin, and the Telegram will be able to receive your stickers without any
problems.
In case if you want to use other paths, be sure to check out how to share files between applications correctly: https://developer.android.com/training/secure-file-sharing/setup-sharing
iOS
For creating sticker data you should use StickerData.iOS method
To import stickers from the iOS application, you just need to write the sticker content to Uint8List
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
import(
StickerSet stickerSet) → Future< String?> - Method for import sticker set
Constants
- androidImportFolderName → const String
- Folder inside cache directory for store your stickers