Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

telegramstickersimport

telegramstickersimport helps your users import third-party programmatically created sticker sets into telegram messenger for ios and android.

this is not an official plugin!

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

add telegram_stickers_import dependency to your pubspec.yaml

android

no special installation required

ios

configure your info.plist by right-clicking it in project navigator, choosing open as > source code and adding this snippet:

<key>lsapplicationqueriesschemes</key>
<array>
<string>tg</string>
</array>

usage

to import a sticker set into telegram, create a new sticker set and import it as follows:

final stickerset = stickerset(
    software: "my app",
    isanimated: true,
    stickers: stickers,
);

telegramstickersimport.import(stickerset);

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 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


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.