fix(core): call Conversation.handleUpdate on the wrapper client
This commit is contained in:
parent
41a3575805
commit
c0ae65b60f
2 changed files with 2 additions and 2 deletions
|
@ -5426,7 +5426,7 @@ export class TelegramClient extends EventEmitter implements ITelegramClient {
|
||||||
makeParsedUpdateHandler({
|
makeParsedUpdateHandler({
|
||||||
messageGroupingInterval,
|
messageGroupingInterval,
|
||||||
onUpdate: (update) => {
|
onUpdate: (update) => {
|
||||||
if (Conversation.handleUpdate(this._client, update) && skipConversationUpdates) return
|
if (Conversation.handleUpdate(this, update) && skipConversationUpdates) return
|
||||||
|
|
||||||
this.emit('update', update)
|
this.emit('update', update)
|
||||||
this.emit(update.name, update.data)
|
this.emit(update.name, update.data)
|
||||||
|
|
|
@ -73,7 +73,7 @@ function _initializeClient(this: TelegramClient, opts: TelegramClientOptions) {
|
||||||
makeParsedUpdateHandler({
|
makeParsedUpdateHandler({
|
||||||
messageGroupingInterval,
|
messageGroupingInterval,
|
||||||
onUpdate: (update) => {
|
onUpdate: (update) => {
|
||||||
if (Conversation.handleUpdate(this._client, update) && skipConversationUpdates) return
|
if (Conversation.handleUpdate(this, update) && skipConversationUpdates) return
|
||||||
|
|
||||||
this.emit('update', update)
|
this.emit('update', update)
|
||||||
this.emit(update.name, update.data)
|
this.emit(update.name, update.data)
|
||||||
|
|
Loading…
Reference in a new issue