How to use Api.ReplyMarkup
See original GitHub issueHello thanks for making this, Im trying to send message to channel with markup. but Im getting this error :
Error: Required object ReplyInlineMarkup of undefined is undefined
this is the message that I send :
const result = await client.invoke(new Api.messages.SendMessage({ noWebpage: true, silent: true, background: true, clearDraft: true, peer: new Api.InputPeerChannel({ channelId:1680943xxxn, accessHash:6967653601753368xxxn }), replyToMsgId: 6872073, message: "hello", randomId: 1848690, replyMarkup: new Api.ReplyInlineMarkup({ "buttons": [{ "text": "� Open youtube �", "url": "https://youtube.com" }), scheduleDate: 789917, })); console.log(result);
Can you give some clear example to do this?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (4 by maintainers)
try like this
ok thanks!