Skip to content

Conversation

@shoom3301
Copy link
Contributor

@shoom3301 shoom3301 commented May 8, 2024

  1. Get all telegram subscriptions for an account
http://localhost:1337/api/tg-subscriptions/0xfb3c7eb936cAA12B5A884d612393969A557d4307
  1. Add a subscription
fetch('http://localhost:1337/api/add-tg-subscription', {method: 'POST', body: JSON.stringify({account: '0xfb3c7eb936cAA12B5A884d612393969A557d4307', data: {
  auth_date: 1715154310,
  first_name: "xxxx",
  hash: "1f2b9a99f5162f9b72b78b85c4a16d44c8f85d0a69eb4a5c50082d3fdb64b541",
  id: 11111111,
  photo_url: "......",
  username: "sssss"
}})})
  1. Send notifications to telegram
http://localhost:1337/api/send-tg-notifications/0xfb3c7eb936cAA12B5A884d612393969A557d4307

@shoom3301 shoom3301 requested a review from a team May 8, 2024 08:35
@shoom3301 shoom3301 self-assigned this May 8, 2024
@shoom3301 shoom3301 force-pushed the feat/telegram-api branch 5 times, most recently from 3d71ea1 to 10f5b98 Compare May 8, 2024 09:33
@shoom3301 shoom3301 force-pushed the feat/telegram-api branch from 10f5b98 to 443f36b Compare May 8, 2024 09:37
@shoom3301 shoom3301 merged commit bdaba8f into feat/notifications-api May 8, 2024
Copy link
Contributor

@anxolin anxolin left a comment

Choose a reason for hiding this comment

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

Nice job figuring out the hmac thing! not making too many comments as this will be cleaned up after hackathon, so all good!

@alfetopito alfetopito deleted the feat/telegram-api branch May 14, 2024 09:34
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.

3 participants