Skip to content

Commit

Permalink
chore(contexts): use source from parent message in reply
Browse files Browse the repository at this point in the history
  • Loading branch information
negezor committed Jan 22, 2023
1 parent 90abf2b commit a103db7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/vk-io/src/structures/contexts/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,9 @@ class MessageContext<S = ContextDefaultState>
this[kReplyMessage] = new MessageContext({
api: this.api,
upload: this.upload,
source: UpdateSource.WEBHOOK,
source: this.$filled
? UpdateSource.WEBHOOK
: UpdateSource.POLLING,
groupId: this.$groupId,
updateType: 'message_new',
state: this.state,
Expand Down

0 comments on commit a103db7

Please sign in to comment.