Skip to content

Error when you try sending message on channel #8

@IKA-Syrian

Description

@IKA-Syrian

/home/darkmen/Telegram-bot/node_modules/@yuva1422/telegram.js/src/structures/Message.js:93
this.member = this.chat.members.add(this.chat.id, { id: data.from.id, extras: [{ user: data.from }] });
^

TypeError: Cannot read properties of undefined (reading 'id')
at Message._patch (/home/darkmen/Telegram-bot/node_modules/@yuva1422/telegram.js/src/structures/Message.js:93:71)
at new Message (/home/darkmen/Telegram-bot/node_modules/@yuva1422/telegram.js/src/structures/Message.js:41:20)
at WorkerClient.onMessage (/home/darkmen/Telegram-bot/node_modules/@yuva1422/telegram.js/src/client/WorkerClient.js:39:21)
at WorkerClient.processUpdate (/home/darkmen/Telegram-bot/node_modules/@yuva1422/telegram.js/src/client/WorkerClient.js:27:12)
at /home/darkmen/Telegram-bot/node_modules/@yuva1422/telegram.js/src/client/PollingClient.js:50:30
at processTicksAndRejections (node:internal/process/task_queues:96:5)
[nodemon] app crashed - waiting for file changes before starting...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions