Closed DineshValor closed 2 years ago
Button Location Image Message code line missing in ./lib/simple.js, or am i missed somewhere?
Image location looks much better, and prevent saving images in gallery.
conn.sendButton(m.chat, 'hi', global.author, buffer, [['menu', '/menu']], m, { asLocation: true })
If anyone want to use Hydrated Buttons Image Location then below is the example to do that:
Sample-
conn.sendHydrated(m.chat, text.trim(), author, 'link.jpg', 'template-url', 'Template-URL', '0123456789', 'Template-CALL', [
['Donate', '/donasi'],
['Speed', '/ping'],
['Owner', '/owner']
], m, {asLocation: true})
Example-
conn.sendHydrated(m.chat, 'one', 'two', 'https://telegra.ph/file/fe5883c8011fd033e395c.jpg', 'https://github.com/BochilGaming/Games-wabot', 'Github', '0123456789', 'Call', [
['Donate', '/donasi'],
['Speed', '/ping'],
['Owner', '/owner']
], m, {asLocation: true})
If didn't want any button or template just replace them by null -
For Example-
conn.sendHydrated(m.chat, 'one', 'two', 'https://telegra.ph/file/fe5883c8011fd033e395c.jpg', 'https://github.com/BochilGaming/Games-wabot', 'Github', null, null, [
['Speed', '/ping'],
['Owner', '/owner']
], m, {asLocation: true})
can you make pull request to add that code to README.md ?
can you make pull request to add that code to README.md ?
Yeah, i will try my best to make these code in README.md
Button Location Image Message code line missing in ./lib/simple.js, or am i missed somewhere?
Image location looks much better, and prevent saving images in gallery.