-
Notifications
You must be signed in to change notification settings - Fork 680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Telegram Bot for Points/Drop Updates #233
Comments
I'm really in love with this feature ❤️ I'll see what can I do |
I've already hacked together a method |
This adds a (bad) Telegram implementation to receive updates via your own bot. Bot Token via https://t.me/BotFather. See here for the accompanying issue: Tkd-Alex#233
This adds a (bad) Telegram implementation to receive updates via your own bot. Bot Token via https://t.me/BotFather. See here for the accompanying issue: Tkd-Alex#233
@ColinShark Be careful when referencing things from a private repo. We can see the 2 commits that includes your telegram key. |
If you read closely, the |
I've thought a lot on this issue, we should track all events? Or create a list of event like: Something like that? |
I think choosing which ones to track is a good idea. Probably default to everything so you can just do something like this: miner = TwitchChannelPointsMiner(
username="username",
telegram_settings=TelegramSettings(token="123456:abc123def456")
) Then you could disable what you don't need/want with something like this? No idea how easy that'd be to implement. TelegramSettings(
token="123456:abc123def456",
streamer_online=True,
gain_for_raid=False,
...
) As you can see from my fork, I literally just put a POST request to Telegrams API in utils, and track what I get updates on anyway |
Are you able to clear the code and submit a PR? I'll work on it, but in this way we will have a commit signed by you - the idea it's yours ;) and we had a contribution by you |
I can do that, but Imma re-do my fork and branch for that because VSCode commited that as Gitea first 🙄 😅 |
As you wish 😂 |
I don't know how easy it would be to implement, but can we have a Telegram Bot Feature? :D
I thought maybe a Class for a Telegram Bot, so we can receive updates on Points, Drops and/or Bets from our own Bot in Telegram. Perhaps a Class to handle everything.
Users could be told in the Readme to create a bot with BotFather and add the Token and their own User ID to the
run.py
. All api request would need to go tohttps://api.telegram.org/bot<token>/METHOD_NAME
, where Method_Name could just besendMessage
with appropriate information filled in.As an additional bonus, maybe even commands to restart the points miner? 👀
I know, I've kinda skipped the issue template 🙈
Edit: I've made a (rough) proof-of-concept in
WebSocketsPool.on_message
:What it could look like:
The text was updated successfully, but these errors were encountered: