fix: send sticker mark as sent
This commit is contained in:
parent
70c7e0a704
commit
c7a7bdc0df
|
@ -376,7 +376,7 @@ proc sendSticker*(self: ChatModel, chatId: string, replyTo: string, sticker: Sti
|
||||||
self.events.emit("stickerSent", StickerArgs(sticker: sticker, save: true))
|
self.events.emit("stickerSent", StickerArgs(sticker: sticker, save: true))
|
||||||
var (chats, messages) = self.parseChatResponse(response)
|
var (chats, messages) = self.parseChatResponse(response)
|
||||||
self.events.emit("chatUpdate", ChatUpdateArgs(messages: messages, chats: chats))
|
self.events.emit("chatUpdate", ChatUpdateArgs(messages: messages, chats: chats))
|
||||||
self.events.emit("sendingMessage", MessageArgs(id: messages[0].id, channel: messages[0].chatId))
|
self.events.emit("messageSendingSuccess", MessageSendingSuccess(message: messages[0], chat: chats[0]))
|
||||||
|
|
||||||
proc addEmojiReaction*(self: ChatModel, chatId: string, messageId: string, emojiId: int) =
|
proc addEmojiReaction*(self: ChatModel, chatId: string, messageId: string, emojiId: int) =
|
||||||
let reactions = status_chat.addEmojiReaction(chatId, messageId, emojiId)
|
let reactions = status_chat.addEmojiReaction(chatId, messageId, emojiId)
|
||||||
|
|
Loading…
Reference in New Issue