Add support for sending gifs via Giphy

Fixes #22
Closes #75

Co-authored-by: Nischay <hegdenischay@gmail.com>
This commit is contained in:
Tulir Asokan
2024-05-18 16:08:35 +03:00
parent f59406a47a
commit 47f17fde45
15 changed files with 631 additions and 188 deletions

View File

@ -60,8 +60,9 @@ export function sendSticker(content) {
const widgetData = {
...data,
description: content.body,
file: `${content.id}.png`,
file: content.filename ?? `${content.id}.png`,
}
delete widgetData.content.filename
// Element iOS explodes if there are extra fields present
delete widgetData.content["net.maunium.telegram.sticker"]