A Telegram bot counts the duration of all videos from the received channel
- Find it on Telegram as For How Long
- Using youtube data API.
- Receive video sended by users and count all videos uploaded on the channel.
- Send to user all time duration divided into days hours minutes.
- Save requested data to cache for fast answer if not new videos uploaded.
- Handle more exceptions.
- LOGGER support.
- Update command.
- Send channel banner.
- Set inline bot.
- Clone this git repository.
git clone https://github.com/glahiator/for_how_long.git- Change Directory
cd for_how_long- Install requirements with pip3
pip3 install -r requirements.txtThere are way for configuring this bot.
- Create file info.ini.
- Add youtube API key in file with next structure ['API']['KEY'].
- Add telegram token with next ['TELEGRAM']['TOKEN'].
config['TELEGRAM']['TOKEN']- Get it by contacting to BotFatherconfig['API']['KEY']- Get it by step-by-step complete guide
- Copyright (©) 2022 by glahiator
- Licensed under the terms of the GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007