Skip to content

Conversation

cctdaniel
Copy link
Contributor

No description provided.

@@ -0,0 +1,4 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think people might make mistake here. How do you feel about merging this with publishers.yaml and have something like this:

- name: XYZ
   key: dklaajfaldj
   contract:
     telegram_id:  (optional)
     email: (optional for future)
     slack_channel_id: (optional)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah thats a good idea

)
return

telegram_api_url = f"https://api.telegram.org/bot{os.environ['TELEGRAM_BOT_TOKEN']}/sendMessage"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you load this environment variable in the constructor? So we can catch it earlier if it's not passed.

Copy link
Contributor

@ali-behjati ali-behjati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Can you also update the readme and mention how to find the group chat id?

@cctdaniel cctdaniel merged commit 9803a22 into main May 9, 2024
@cctdaniel cctdaniel deleted the telegram branch May 9, 2024 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants