sjkingo / python-freshdesk

An API for the Freshdesk helpdesk
BSD 2-Clause "Simplified" License
87 stars 67 forks source link

how to create a new watcher or get noticed about newest replay. #69

Open codepypl opened 3 years ago

codepypl commented 3 years ago

Im trying to create a discord bot to supprt full integration with freshdesk.

i wish to be notified about new replay from customer my bot sends automatic replay to each new ticket so i thought that i will count replays and if it wil be >1 and ticket will be open then i will notify about updates

for ticket in fresh_api.tickets.list_open_tickets(): for comment in fresh_api.comments.list_comments(ticket.id): if comment.source == 0 or comment.source == 8 comment.count() > 1: await it.send(f'Pojawiła się odpowiedź do zgłoszenia: {ticket.id}') else: pass

sjkingo commented 3 years ago

Hi, I'm not sure what you are trying to achieve here. Is something in this library not working for you?

codepypl commented 3 years ago
  1. how to create a notification when requestter replays for ticket?, how to count replays ?