Add support for sending gifs via Giphy
Fixes #22 Closes #75 Co-authored-by: Nischay <hegdenischay@gmail.com>
This commit is contained in:
parent
f59406a47a
commit
47f17fde45
15 changed files with 631 additions and 188 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue