IDEMSInternational / puzzle-telegram-bot

A Telegram bot for running puzzle competitions
1 stars 2 forks source link

Don't hard-code channels #2

Closed geoo89 closed 2 years ago

geoo89 commented 2 years ago

Ideally, whenever the bot is added to a channel or communicated with directly, it should create a data file for that channel/user. This should use the channel/user ID in its filename rather than name. Also see: https://stackoverflow.com/questions/41690726/how-to-get-a-telegram-channel-id-without-sending-a-message-to-it

(In the future consider using a DB rather than files.)