Skip to content

Sending messages as a public channel #393

Answered by rojvv
foodornt asked this question in Q&A
Discussion options

You must be logged in to vote

Seems like the helper methods currently don't support this parameter, but you can always use raw methods, like this:

await client.invoke(
  new Api.messages.SendMessage({
    peer: "chat to send the message to",
    message: "message text",
    sendAs: "chat to send the message as",
  }),
);

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@foodornt
Comment options

@rojvv
Comment options

Answer selected by foodornt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants