Skip to content

Commit

Permalink
feat - emojis on buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpaulo2 committed Oct 2, 2024
1 parent 90cc9ef commit 66f6299
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions function/telegram/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,29 @@ def content(self) -> str:
@property
def buttons(self) -> InlineKeyboardMarkup:
keyboard = [
self._button("Acessar publicação", self.message.link),
self._button("Compartilhar no Whatsapp", self._whatsapp_link),
self._button(
emojize(":globe_with_meridians: Acessar publicação"),
self.message.link,
),
self._button(
emojize(":telephone_receiver: Compartilhar no Whatsapp"),
self._whatsapp_link,
),
]
if self.message.youtube:
keyboard.insert(
0, self._button("Assistir no YouTube", self.message.youtube[0])
0,
self._button(
emojize(":play_button: Assistir no YouTube"),
self.message.youtube[0],
),
)
if self.message.instagram:
keyboard.insert(
0, self._button("Ver no Instagram", self.message.instagram[0])
0,
self._button(
emojize(":camera_with_flash: Ver no Instagram"),
self.message.instagram[0],
),
)
return InlineKeyboardMarkup(keyboard)

0 comments on commit 66f6299

Please sign in to comment.