Setup config.py
- Head to Bot Father, create new bot and paste the bot token to
BOT_TOKEN
- Source to bot is given here Click Here
- Head to Manage Apps and get your
API_ID
andAPI_HASH
, and save it at the respective positions inconfig.py
Paste the bot owner's Telegram id to
BOT_OWNER
and addAUTH_USERS
if you need others to use your bot.- Head to Google console, create a new project named
Youtube Uploader
and enableAPI'S AND SERVISES
. Search forYOUTUBE DATA API v3
and enable the API. Go to Credentials page, select your projectYoutube Uploader
create a new credential withother
as type. Copy theCLIENT_ID
andCLIENT_SECRET
and paste them toconfig.py
- All the contents of
config.py
must be kept secret as they contain sensitive informations
Special notes
- With the Youtube Data API you are awarded with 10,000 points of requests. For one video upload it costs 1605 points, regardless of file size, which calculates to about 6 uploads daily. Once you have exhausted your daily points, you have to wait till daily reset. Resets happens at 0:00 PST, i.e. 12:30 IST. So make your uploads count.
- Uploading copyright contents will leads to immediate blocking of the video, and will not be added to your
MyVideos
section of youtube. But still the video can be played directly through the link provided by the bot. - All the videos are uploaded as private. You may change it after youtube processes the video.
Take a look at it and share your feedback
google account Access problem bro
ReplyDeleteşırnak
ReplyDeleteağrı
maraÅŸ
yalova
zonguldak
AZNDÄ°