telegram mechanism to create a bot. #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: juergen/ticketfrei#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Author: @b3yond Posted at: 23.06.2018 21:10
stage 1:
stage 2:
Author: @git-sid Posted at: 10.10.2018 18:11
Stage 1 may be better for our goal:
In stage 2, Telegram might ban the ticketfrei account which creates the necessary bots.
A takedown of the account would lead to offtime for all created bots.
Stage 1 however mitigates this attack vector through decentralization. Banning an account would only impair the functionality of its bot, while keeping the rest unaffected.
My suggestion would be to let the user choose between both options:
Use stage 2 as standard and offer stage 1 as an advanced (and recommended) option.
Author: @b3yond Posted at: 11.10.2018 12:39
There is this telegram cli client which we could use for stage 2 - but it hasn't been developed since 2016 and I'm not deep enough into telegram to judge if it fits our requirements: https://github.com/vysheng/tg
Author: @git-sid Posted at: 30.10.2018 16:15
We could use Telethon instead of tg. Looks like it's active.
We would still need an account to get access to the telegram api.
I'd look like this (step 0-2 are only necessary once per project deploy. Step 4 to end is repeated once per new bot).
Author: @b3yond Posted at: 01.11.2018 20:45
step 3 & 4 can be automated, so you don't have to do that for every city manually.
I registered API keys, which we can now use for testing. Ask me for it, I'll only give them around internally.
Author: @b3yond Posted at: 01.11.2018 21:00
We should introduce an option to choose between stage1 and stage2. If an admin does not have telegram, they could not administer the platform. This should not be a hard requirement for running Ticketfrei.
The settings page can then either show moderators the option to add an API key (as it's needed for stage1) or just tell them that they now have a Telegram bot (including the options for setting name, description, profile pic. #63).
Author: @b3yond Posted at: 01.11.2018 21:06
Note: stage2 is less resilient against censorship by Telegram. If Telegram blocks the account of the admin, all cities lose their Telegram bots. Not that likely though, and if that happens, the admin can still switch back to stage1. But all the bots will lose their Telegram followers. Admins have to consider if they really want to enable this.
Author: @git-sid Posted at: 11.01.2019 12:40
A choice in the frontend like
"We'll setup a telegram bot. Alternatively you can use your own by inserting its API key here: __________. See [link to some helppage where they explain how to get the api key in telegram] for help."
would be nice.