Advertisement
Guest User

ImagemapSendMessage.py

a guest
Jul 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.58 KB | None | 0 0
  1. message = ImagemapSendMessage(
  2.     base_url='https://example.com/base',
  3.     alt_text='this is an imagemap',
  4.     base_size=BaseSize(height=1040, width=1040),
  5.     actions=[
  6.         URIImagemapAction(
  7.             link_uri='https://example.com/',
  8.             area=ImagemapArea(
  9.                 x=0, y=0, width=520, height=1040
  10.             )
  11.         ),
  12.         MessageImagemapAction(
  13.             text='hello',
  14.             area=ImagemapArea(
  15.                 x=520, y=0, width=520, height=1040
  16.             )
  17.         )
  18.     ]
  19. )
  20. line_bot_api.reply_message(event.reply_token, message)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement