python-freshdesk icon indicating copy to clipboard operation
python-freshdesk copied to clipboard

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

Open codepypl opened this issue 4 years ago • 2 comments

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

codepypl avatar Apr 05 '21 02:04 codepypl

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

sjkingo avatar Apr 07 '21 19:04 sjkingo

  1. how to create a notification when requestter replays for ticket?, how to count replays ?

codepypl avatar Apr 07 '21 20:04 codepypl