Giter VIP home page Giter VIP logo

moe-sticker-bot's Introduction

Go Reference Go Report CI CI


Use moe-sticker-bot, a Telegram bot, to easily import or download LINE/Kakaotalk/Telegram stickers, use your own image or video to create Telegram sticker set or CustomEmoji and manage it.


Telegram用萌萌貼圖BOT。

匯入或下載LINE和kakaotalk貼圖包到Telegram. 使用自己的圖片和影片創建Telegram貼圖包或表情貼並管理.

下載Telegram貼圖包/GIF。

Features/功能

  • Import LINE or kakao stickers to Telegram without effort, you can batch or separately assign emojis.

  • Create your own sticker set or CustomEmoji with your own images or videos in any format.

  • Support mixed-format sticker set. You can put animated and static stickers in the same set.

  • Batch download and convert Telegram stickers or GIFs to original or common formats.

  • Export Telegram stickers to WhatsApp (requires Msb App, supports iPhone and Android).

  • Manage your sticker set interactively through WebApp: add/move/remove/edit sticker and emoji.

  • Provides a CLI app msbimport for downloading LINE/Kakaotalk stickers.

  • 輕鬆匯入LINE/kakao貼圖包到Telegram, 可以統一或分開指定emoji.

  • 輕鬆使用自己任意格式的圖片和影片來創建自己的貼圖包或表情貼.

  • 支援混合貼圖包。動態靜態貼圖可以放在同一個包內。

  • 下載Telegram/LINE/kakao貼圖包和GIF, 自動變換為常用格式, 並且保留原檔.

  • 匯出Telegram的貼圖包至WhatsApp(需要安裝Msb App, 支援iPhone和Android)。

  • 互動式WebApp可以輕鬆管理自己的貼圖包: 可以新增/刪除貼圖, 移動位置或修改emoji.

  • 提供名為msbimport的終端機程式, 用於下載LINE/kakao貼圖。

Screenshots

MSB

スクリーンショット 2023-02-27 午後7 29 35

スクリーンショット 2023-02-27 午後7 24 14

スクリーンショット 2023-02-27 午後7 37 17

スクリーンショット 2022-12-12 午後2 27 10

スクリーンショット 2023-02-11 午前2 24 37

Deployment

Deploy with pre-built containers

It is recommended to deploy moe-sticker-bot using containers. A pre-built OCI container is available at https://github.com/users/star-39/packages/container/package/moe-sticker-bot

Run:

docker run -dt ghcr.io/star-39/moe-sticker-bot /moe-sticker-bot --bot_token="..."

If you are on ARM64 machine, use aarch64 tag.

See a real world deployment example on deployments/kubernetes_msb.yaml.

System Dependencies

  • ImageMagick(6 or 7, both fine)
  • bsdtar (libarchive-tools)
  • ffmpeg (Requires a lot of components, use a fat static build or package manager's ones pls!)
  • curl
  • gifsicle (for converting GIF)
  • python3 (for following tools)
  • msb_emoji.py (for extracting emoji)
  • msb_kakao_decrypt.py (for decrypting animated kakao)
  • msb_rlottie.py (for converting TGS)
  • mariadb-server (optional, for database)
  • nginx (optional, for WebApp)

Dependencies above must be accessible through PATH. Don't ask me why they are reported missing by bot.

Build

Build Dependencies

  • golang v1.18+
  • nodejs v18+ (optional, for WebApp)
  • react-js v18+ (optional, for WebApp)
git clone https://github.com/star-39/moe-sticker-bot && cd moe-sticker-bot

go build -o moe-sticker-bot cmd/moe-sticker-bot/main.go 

WebApp

Since 2.0 version of moe-sticker-bot, managing sticker set's order and emoji is achieved using Telegram's new WebApp technology.

See details on web/webapp

CHANGELOG

v2.5.0-RC1(20240531)

  • Support mix-typed sticker set.
  • You can add video to static set and vice versa.
  • Removed WhatsApp export temporarily .
  • Many bug fixes.

v2.4.0-RC3(20240226)

  • Remove deduplication during database curation.
  • LINE emoji can be imported to either sticker or CustomEmoji.
  • Support creating sticker set with under 50 stickers in batch.
  • Import speed is imcreased significantly.

v2.4.0-RC1-RC2(20240207)

  • Support Importing LINE Emoji into CustomEmoji.
  • Support creating CustomEmoji.
  • Support editing sticker emoji and title.

v2.3.14-2.3.15(20230228)

  • Fix missing libwebp in OCI.
  • Support TGS export.
  • Improve GIF efficiency.

v2.3.11-v2.3.13 (20230227)

  • Fix flood limit by ignoring it.
  • Fix managing video stickers.
  • Improved WhatsApp export.
  • Support region locked LINE Message sticker.
  • 修復flood limit匯入錯誤
  • 修復動態貼圖管理。
  • 改善WhatsApp匯出。
  • 支援有區域鎖的line訊息貼圖。

v2.3.8-2.3.10 (20230217)

  • Fix kakao import fatal, support more animated kakao.
  • 修復KAKAO匯入錯誤, 支援更多KAKAO動態貼圖.
  • Fix static webp might oversize(256KB)
  • Fix panic during assign: invalid sticker emojis
  • Fix some kakao animated treated as static
  • Improved kakao static sticker quality
  • Improved user experience

v2.3.6-2.3.7 (20230213)

  • Support webhook.
  • Support animated webp for user sticker.
  • Add change sticker set title "feature"
  • Fix "sticker order mismatch" when using WebApp to sort.
  • Fix error on emoji assign.
  • Fix too large animated kakao sticker.

v2.3.1-2.3.5 (20230209)

  • Fix i18n titles.
  • Fix flood limit by implementing channel to limit autocommit cocurrency.
  • Fix error on webapp
  • Fix import hang
  • Fix fatal error not being reported to user.
  • Fix typos

v2.3.0 (20230207)

  • Fix flood limit by using local api server.
  • Support webhook and local api server.
  • Huge performance gain.
  • Fix /search panic.

v2.2.1 (20230204)

  • Fix webm too big.
  • Fix id too long.
  • Tuned flood limit algorithm.

v2.2.0 (20230131)

  • Support animated kakao sticker.
  • 支援動態kakao貼圖。

v2.1.0 (20230129)

  • Support exporting sticker to WhatsApp.
  • 支援匯出貼圖到WhatsApp

2.0.1 (20230106)

  • Fix special LINE officialaccount sticker.
  • Fix --log_level cmdline parsing.
  • Thank you all! This project has reached 100 stars!

2.0.0 (20230105)

  • Use new WebApp from /manage command to edit sticker set with ease.
  • Send text or use /search command to search imported LINE/kakao sticker sets by all users.
  • Auto import now happens on backgroud.
  • Downloading sticker set is now lot faster.
  • Fix many LINE import issues.
  • 通過/manage指令使用新的WebApp輕鬆管理貼圖包.
  • 直接傳送文字或使用/search指令來搜尋所有用戶匯入的LINE/KAKAO貼圖包.
  • 自動匯入現在會在背景處理.
  • 下載整個貼圖包的速度現在會快許多.
  • 修復了許多LINE貼圖匯入的問題.
Detailed 2.0 Changelogs 詳細的2.0變更列表

2.0.0 (20230104)

  • Improve flood limit handling.
  • Auto LINE import now happens on backgroud.
  • Improve GIF download.

2.0.0 RC-7 (20221230)

  • Support /search in group chat.
  • Fix search result.
  • Fix empty sticker title.
  • Sticker download is now parallel.

2.0.0 RC-6 (20221220)

  • Fix line APNG with unexpected tEXt chunk.
  • Changed length of webm from 2.9s to 3s.
  • Minor improvements.

2.0.0 RC-5 (20221211)

  • Fix potential panic when onError
  • Warn user sticker set is full.
  • Fix LINE message sticker with region lock.

2.0.0 RC-4 (20221211)

  • Fix edit sticker on iOS
  • Fix error editing multiple emojis.

2.0.0 RC-3 (20221210)

  • Complies to LINE store's new UA requeirments.
  • Fix animated sticker in webapp.
  • Fixed sticker download
  • Fixed webapp image aspect ratio.

2.0.0 RC-2 (20221210)

  • Fix fatalpanic on webapp.
  • Add /search functionality.
  • Removed gin TLS support.
  • Auto database curation.

2.0.0 RC-1 (20221206)

  • WebApp support for edit stickers.
  • Code structure refactored.
  • Now accepts options from cmdline instead of env var.
  • Support parallel sticker download.
  • Fix LINE officialaccount/event/sticker
  • Fix kakao link with queries.

1.2.4 (20221111)

  • Minor improvements.
  • Fixed(almost) flood limit.
  • Fixed kakao link with queries.

1.2.2 (20220523)

  • Improved user experience.

1.2.1 (20220520)

  • Improved emoji edit.

1.2 (20220518)

  • Fix import error for LINE ID < 775
  • Improved UX during /import.
  • Warn user if sticker set is already full.

1.1 (20220517)

  • Code refactors.
  • UX improvements.
  • Skip error on TGS to GIF due to lottie issues.

1.0 (20220513)

  • First stable release in go version.
  • Added support for downloading TGS and convert to GIF.
  • Backing database for @moe_sticker_bot has gone complete sanitization.

1.0 RC-9(20220512)

  • Add an administrative command to sanitize database, which purges duplicated stickers.
  • Add an advanced command /register, to register your sticker to database.
  • Minor bug fixes.
  • This is the REAL final RC release, next one is stable!

1.0 RC-8 GO(20220512)

  • Fix rand number in ID.
  • Major code refactor.
  • Downlaod sticker now happens on background.
  • Better documentation.
  • This release should be the final RC... hopefully.

1.0 RC-7 GO(20220511)

  • You can specify custom ID when /create.
  • Changed import ID naming scheme for cleaner look.
  • Die immediately if FloodLimit exceeds 4.
  • If everything looks good, this should be the last RC for 1.0

1.0 RC-6 GO(20220511)

  • New feature: Change sticker order.
  • New feature: Edit sticker emoji.
  • New import support: kakaotalk emoticon.
  • Fix possible panic when editMessage.
  • We are closing to a stable release! RC should not exceed 8.

1.0 RC-5 GO(20220510)

  • New feature: download raw line stickers to zip.
  • FatalError now prints stack trace.
  • zh-Hant is now default in auto LINE title.
  • Quality of video sticker should improve by a bit.
  • Fix possible slice out of range panic.
  • If user experience FloodLimit over 3 times, terminate process.s

1.0 RC-4 GO(20220509)

  • Use my custom fork of telebot
  • User sent sticker now supports any file.

1.0 RC-3 GO(20220509)

  • Split large zip to under 50MB chunks.
  • Split long message to chunks.
  • GIF downloaded is now in original 512px resolution.
  • You can press "No" now when sent link or sticker.
  • If error is not HTTP400, bot will retry for 3 times.
  • Other minor improvements.

1.0 RC-2 GO(20220508)

  • Fix SEGV when user requested /quit
  • Ignore FloodLimit by default since API will do retry at TDLib level.
  • Fix emoji in database.
  • Fix video sticker when /manage.
  • Support line message sticker and emoticon(emoji).

1.0 RC-1 GO(20220506)

  • Completely rewritten whole project to golang
  • Countless bug fixes.
  • You can send sticker or link without a command now.
  • Performance gained by a lot thanks to goroutine and worker pool.
Old changelogs

5.1 RC-4 (20220423)

  • Fix duplicated sticker.
  • Fix alpha channel converting GIF.

5.1 RC-3 (20220416)

  • Do not use joblib due to their bugs.
  • /download_telegram_sticker now converts to standard GIFs.

5.1 RC-2 (20220326)

  • Significantly improved perf by using parallel loop.
  • Sanitize kakao id starting with -

5.1 RC-1 (20220309)

  • Support kakaotalk emoticon.
  • Add more check for telegram sticker id.

5.0 RC-12 (20220305)

  • Database now records line link and emoji settings.
  • Fix issue when line name has <> marks.
  • Fix issue adding video to static set.
  • Fix hang handling CallbackQuery.

5.0 RC-11 (20220303)

  • You can now delete a sticker set.
  • /manage_sticker_set will show sets you created.
  • Fix missing sticker during USER_STICKER.

5.0 RC-10 (20220226)

  • Performance is now significantly improved.
  • Fix issue converting Line message stickers.
  • Bypass some regional block by LINE.

5.0 RC-9 (20220223)

  • Splitted line popups to two categories, one keeping animated only.
  • Bot now has a database stroing "good" imported sticker sets.
  • Fix duplicated stickers in sticker set.

5.0 RC-8 (20220222)

  • Fix user sticker parsing.
  • Add support for MdIcoFlashAni_b

5.0 RC-7 (20220215)

  • Fix exception if user sent nothing during USER_STICKER
  • Fix a bug where /import_line_sticker may have no response.
  • Corrected file download limit.
  • Fix animated sticon
  • Fix import hang due to missing ffmpeg '-y' param.

5.0 RC-6 (20220215)

  • Fix python-telegram-bot WebHook problem.
  • Fix emoji assign.
  • Fix black background video sticker.
  • Fix "Sticker too big" when uploading video sticker.

5.0 RC-5 (20220214)

  • Allow using WebHook for better performance.
  • Code refactors.
  • Support Line name sticker.

5.0 RC-4 (20220212)

  • Improved user sticker exprerience.

5.0 RC-3 (20220212)

  • Fix a bug where creating sticker set with one sticker will cause fatal error.
  • Fix missing clean_userdata in /download_line_sticker
  • Tune VP9 params to avoid hitting 256K limit. This reduces video quality by a bit.

5.0 RC-2 (20220211)

  • Fix media_group
  • Minor bug fixes.
  • Version 5.0 now enters freature freeze. No new feature will be added. Will have bug fixes only.

5.0 RC-1 (20220211)

  • Support Line popup sticker without sound
  • Support AVIF.
  • Many bug fixes.

5.0 ALPHA-1 (20220211)

  • Full support of animated(video) sticker. 完整支援動態貼圖. アニメーションスタンプフル対応。
  • New feature: /manage_sticker_set, now you can add, delete, move sticker in a sticker set.
  • Add support for Line full screen sticker(animated).

4.0 ALPHA-5 (20220210)

  • Bring back fake RetryAfter check since some people still having this issue.

4.0 ALPHA-4 (20220210)

  • Support user uploaded animated(video) stickers. You can both create or add to set.
  • Better support sticon(line_emoji)
  • Bug fixes.

4.0 ALPHA-3 (20220209)

  • Supports all special line stickers,
  • including effect_animation and sticon(emoji)

4.0 ALPHA-1 (20220209)

  • Supports animated line sticker import.

Special Thanks:

for free 4CPU AArch64 Cloud Instance.

貼圖群 - Sticker Group Taiwan for testing and reporting.

LINE Corp / Kakao Corp for cute stickers.

https://github.com/blluv/KakaoTalkEmoticonDownloader MIT License Copyright @blluv

https://github.com/laggykiller/rlottie-python GPL-2.0 license Copyright @laggykiller

You and all the users! ☺

License

The GPL V3 License

image

moe-sticker-bot's People

Contributors

star-39 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

moe-sticker-bot's Issues

web certificate expires

web certificate expires
image

And ignore the certificate using advanced page after opening the page no matter how to load can not display the preview picture normally
image

Unable to add sticker into an existing sticker set

Subject of the issue

Unable to add sticker into an existing sticker set.

Steps to reproduce

  1. Create an Animated Sticker set.
  2. Manage sticker set and add sticker.

Expected behaviour

The response should be as below:

File OK. Got 1 stickers. Continue sending files or press button below to stop adding.
檔案OK. 已收到1份貼圖. 請繼續傳送檔案. 或者按下方按鈕來停止增添.

image

Actual behaviour

The response is below:

Failed converting one user sticker:exit status 1
Failed processing this file. 處理此檔案時錯誤: download or convert error

image

Remarks

  1. This does not happen when creating new animated sticker set with these two files, only add sticker operation causes this issue.
  2. This issue happens after 2024-04-01. Before 2024-04-01, it worked as expected.

Bad Request: STICKERS_TOO_MUCH (400)

When importing emoji packs from places like LINE, they are often in sets of 250. It seems that there may be a hard limit on the number of emoji in a Telegram pack (200?)

It would be nice in edge-cases like this if the app were able to split origin sets into multiple emoji packs. As it stands the emoji pack does work, it just never will have the last ~50 emoji in it which isn’t ideal. And it doesn’t seem like there’s a way to manually create a pack with just the last 50 from a given link.

Just some ideas! Thanks for making such a cool and useful tool :)

Problem with kakao links

The links of the kakao stickers when copied no longer appear like this:
https://emoticon.kakao.com/items/lV6K2fWmU7CpXlHcP9-ysQJx9rg=?referer=share_link

Now they come out like this and I do the procedure as it says to do in the tutorial:

https://e.kakao.com/t/from-head-to-toe-boyfriend-ver?t_ch=share_link_web

Before, if they came out animated I had no problem and now they don't come out animated... does it have anything to do with the fact that the link has changed?

I have been wanting to know for months if the problem can be fixed since in the kakao animated stickers support section I asked a question regarding this problem and it has not been answered, that is why I am posting the question as new. For everything else, the bot is perfect, there is no problem other than the one I just mentioned. I hope I don't bother you and I would like to have an answer, thank you very much.

Edit Emoji doesn't always work

Thanks for the awesome project! 🥇

I want to report a bug 🐛 .

Here's the step that I have taken:

Screen Shot 2022-05-18 at 22 01 06

But after doing this, the following sticker doesn't get assigned to 👀 . It still remains as the emoji that it was previously assigned.
Screen Shot 2022-05-18 at 22 04 28

convert: delegate failed `'dwebp' -pam '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1994

$ ./moe-sticker-bot -bot_token=123456789:AAOTg3NjU0MzIxHMkJOVo3MTIzNDU2Nzg560 
Log level is set to: debug
DEBUG[0000] Warning: Log level below DEBUG might print sensitive information, including passwords. 
WARNING[0000] Following required executables not found!:   
WARNING[0000] exiv2                                        
WARNING[0000] Please install missing executables to your PATH, or some features will not work! 
INFO[0000] Attempting to initialize...                   token="123456789:AAOTg3NjU0MzIxHMkJOVo3MTIzNDU2Nzg560"
WARNING[0000] Not using database because --use_db is not set. 
INFO[0000] WebApp not enabled.                          
INFO[0000] Bot OK.                                       botName=Sticker_ImageBot dataDir=./Sticker_ImageBot_data
DEBUG[0011] User 123456789 entering command with message: /download 
DEBUG[0016] user 123456789 entered no session with message:  
DEBUG[0020] Sanitizing callback data...                  
DEBUG[0020] now: dsingle                                 
DEBUG[0020] user 123456789 entered no session with message: You can download this sticker or the whole sticker set, please select below.
您可以下載這個貼圖或者其所屬的整個貼圖包, 請選擇: 
DEBUG[0020] Downloading in pool: CAACAgUAAxkBAANqZMTSSR5AKaiUi0HBXGXp2x4c2g4AAhwBAAIVudck1jH2tQGV1RwvBA -> Sticker_ImageBot_data/c72192c0f493b8ad/mochadandan/mochadandan_😴 
WARNING[0021] imToPng ERROR: convert: unable to open image `Sticker_ImageBot_data/c72192c0f493b8ad/mochadandan/mochadandan_😴.webp': No such file or directory @ error/blob.c/OpenBlob/2960.
convert: delegate failed `'dwebp' -pam '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1994.
convert: unable to open file `/tmp/magick-jHFIDHwAydgW3teYSYJu73uAWM75xug0': No such file or directory @ error/constitute.c/ReadImage/620.
convert: no images defined `Sticker_ImageBot_data/c72192c0f493b8ad/mochadandan/mochadandan_😴.webp.png' @ error/convert.c/ConvertImageCommand/3229. 
WARNING[0021] download: error downloading sticker: chmod Sticker_ImageBot_data/c72192c0f493b8ad/mochadandan/mochadandan_😴.webp: no such file or directory 

Ubuntu 20.04 ARM64的机器, 调用 bot command /download 发了一张webp的sticker 产生的报错

Ubuntu 20.04 x86 的机器,将 GLIBC 升级到 2.32 以上,下载单张sticker正常,下载整个贴图包,报错如下:

...
...
WARNING[0020] ffToGif ERROR:
[paletteuse @ 0x7f626263b040] [Eval @ 0x7ffc8819cc80] Undefined constant or missing '(' in 'sierra3'
[paletteuse @ 0x7f626263b040] Unable to parse option value "sierra3"
[paletteuse @ 0x7f626263b040] [Eval @ 0x7ffc8819ccb0] Undefined constant or missing '(' in 'sierra3'
[paletteuse @ 0x7f626263b040] Unable to parse option value "sierra3"
[paletteuse @ 0x7f626263b040] Error setting option dither to value sierra3.
[Parsed_paletteuse_2 @ 0x56349a2f0b40] Error applying options to the filter.
[AVFilterGraph @ 0x56349a2eeb00] Error initializing filter 'paletteuse' with args 'dither=sierra3'
Error initializing complex filters.
Invalid argument 
...
...

Avoid triggering flood control

No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "main.py", line 143, in do_auto_import_line_sticker
    _.bot.add_sticker_to_set(user_id=update.message.from_user.id,
  File "/usr/local/lib/python3.8/site-packages/telegram/bot.py", line 127, in decorator
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/telegram/bot.py", line 4464, in add_sticker_to_set
    result = self._post('addStickerToSet', data, timeout=timeout, api_kwargs=api_kwargs)
  File "/usr/local/lib/python3.8/site-packages/telegram/bot.py", line 259, in _post
    return self.request.post(
  File "/usr/local/lib/python3.8/site-packages/telegram/utils/request.py", line 347, in post
    result = self._request_wrapper('POST', url, fields=data, **urlopen_kwargs)
  File "/usr/local/lib/python3.8/site-packages/telegram/utils/request.py", line 265, in _request_wrapper
    message = str(self._parse(resp.data))
  File "/usr/local/lib/python3.8/site-packages/telegram/utils/request.py", line 223, in _parse
    raise RetryAfter(retry_after)
telegram.error.RetryAfter: Flood control exceeded. Retry in 10.0 seconds

the animate stickers runs with Fatal error result

I self host the bot by clone in debian11.1
previously the bot works fine.
the animated sticker just goes to the static pictures.

this update I deleted the whole moe-sticker-bot folder,
and recheck install of the requirement.
but the bot returns this result below

Traceback (most recent call last): File "/home/debian/Downloads/moe-sticker-bot/helper.py", line 41, in retry_do func() File "/home/debian/Downloads/moe-sticker-bot/main.py", line 71, in <lambda> err = retry_do(lambda: ctx.bot.create_new_sticker_set(user_id=update.effective_user.id, File "/home/debian/.local/lib/python3.9/site-packages/telegram/bot.py", line 130, in decorator result = func(*args, **kwargs) TypeError: create_new_sticker_set() got an unexpected keyword argument 'webm_sticker'

and i tested once at your official one works.
does the requirements added something new but not listed?

Could you improve the sorting feature please?

Thank you for the project!

It is too tedious to sort stickers step-by-step. How about inputing a string to define the new position of stickers? Like "987654321" means all stickers (there are nine stickers in total) are sorted reversely.

Telegram貼圖包&管理貼圖包

非常感謝您的貢獻!
目前Telegram官方貼圖包沒有辦法下載到封面覺得有些可惜,希望未來有機會是否可以新增。
還有遇到了一個小問題,同時使用@Stickers管理刪除貼圖包後,/manage依舊會顯示,但會顯示找不到貼圖包和無法刪除。

Manual Emoji Assignment is not working.

Thanks for the amazing bot, but it seems it only works when I use random emoji assignment, but not manual assignment.

I tried different sticker sets, both static and animated. When I try to do manual emoji assignment, it is always stuck at the “Preparing stickers, please wait…” phase. When I try those same sticker sets with random emoji assignment, they were successfully processed within minutes.

Let me know if you need more information. Thanks!

Can't Import Kakaotalk stickers

ScreenShot 2024-06-04 183006

Bot can't download kakaotalk's sticker.

It seems like endpoint that download kakaotalk's stickers zip file(item.kakaocdn.net)'s API was changed.

Kakao animated emoji

Hi! Thank you for your amazing job with this telegram bot!
It works great except for Kakao animated stickers, they remain static. Any solution?

Thank you in advice

Cannot add sticker to exists pack

Hi dev team,
I can't add stickers to an existing sticker pack. My pack is an animated sticker pack.
The file I send to the bot is a .zip file. But the bot reports Failed to add one sticker. 一張貼圖添加失敗. Index: 0 Error: telegram: Bad Request: STICKER_VIDEO_NOWEBM (400).

Docker cannot be deployed on ARM platform

When I ran the docker script on an arm server,
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested.

And I tried to add --platform linux/amd64, but did not work.

無法使用

Traceback (most recent call last):
File "/moe-sticker-bot-master/main.py", line 555, in prepare_tg_sticker
ctx.bot.get_file(sticker.file_id).download(os.path.join(sticker_dir,
File "/usr/local/lib/python3.9/dist-packages/telegram/files/file.py", line 175, in download
fobj.write(buf)
OSError: [Errno 28] No space left on device

Copyright Issues.

Hey first of all I really wana thank you for this bot.. Amazing work.
Secondly I seriously wanna know if it's safe to use.. I mean is this legal? I recently saw a kakao bot getting banned for copyright infringement.. A channel used to post animated kakao stickers there.
Are there any rules regarding importing line stickers to telegram?
Will I get in trouble if I import stickers and post them in my channel?
Thanks!

Animated sticker support

Animated sticker import is demanding, however, due to TGS limitations, it would cause severe quality loss.

However, it seems possible to trace a LINE animated WEBP down to 64KB TGS whil maintaining okay visual quality via Inkscape.

Needs further investigation.

create sticker set function error

when you create the package using /create_sticker_set
then after you set the name and ID string, upload the zip files for png images(tested webp also failed)

Traceback (most recent call last): File "/home/user1/Downloads/moe-sticker-bot/main.py", line 311, in parse_emoji do_auto_create_sticker_set(update, ctx) File "/home/user1/Downloads/moe-sticker-bot/main.py", line 58, in do_auto_create_sticker_set ctx.user_data['telegram_sticker_files'] = ctx.user_data['line_queue'].get(timeout=300) AttributeError: 'NoneType' object has no attribute 'get'

already rebuild the debian11 for python3.10.3, + mariadb10.7.3 but still with latest release(git clone again)
now the bot even not able to start
but still with above issue
I also test your official one but it went well.

can you point out where is the issue come from?

Bot doesn't open MSB app

Here's a demo video:

Screenrecording_20230930_170244_compress_1.mp4

I'm using Nagram as my Telegram Client.

new mariadb support error

git clone again, up to date.
the following mariadb version
Server version: 10.6.7-MariaDB-1:10.6.7+maria~focal mariadb.org binary distribution
ran the mysql_secure_installation only
**also tested on 10.5 failed
however when I use the import sticker command
right after input the URL, then server console pop up this error with bot has no response

No error handlers are registered, logging exception. Traceback (most recent call last): File "moe-sticker-bot/database.py", line 88, in query_tg_id_by_line_id cur = CONN.cursor() AttributeError: 'NoneType' object has no attribute 'cursor'

I clone once so the USE_DB=0 in database.py, and the HAS_DB=false in main.py for sure

Is something went wrong?

docker mounting path

By default, temporary files will be downloaded to the server root directory. How to set the mounting path?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.