Subscribers added by Youtube API diappearing - python

I'm using Youtube Data API V3 to subscribe users to a channel. The subscription process basically tells the users that they will subscribe to certain channels by clicking a button. They can walk away from it if they don't want to subscribe. Once they click the button, they will go through Youtube's authorization process and finish the subscriptions. So there's no cheating or whatever. What I find is that on certain days, there might be over one thousand people that subscribe. Before I'd like to celebrate, all the subscribers on that day are gone. But if the subscription acitivities are not that active, say only dozens of people subscribe, nothing would happen. So I wonder if there's any "soft limit" on the number of subscribers within a period of time for API subscription. Google never mentions such limit but I've encountered this problem several times.

Related

Send scheduled message everyday to all users using the slack bot

I am creating a slack bot project using Django. Here I would like to send a scheduled message to every user of the workspace. Every day, the bot will ask specific questions to all users, but personally.
In that case, how can I post questions every day within a specific schedule?
Which tool or django-package will be appropriate to fulfill my problem?

Telegram Bulk Messaging Limitation

this Platform is really really helpful. My issue is that is it possible to send 500k promotional messages per day? I have the script ready using the API # and API ID using Telethon. But anytime i try to send Messages, the accounts get banned. Maybe it got banned because i was on the same IP Address while scraping the users and sending messages. But what I really need to know is that is it even Possible to send 500k messages in day, if yes:
How many Accounts are needed(where can I get these number of
accounts from)?
Do I have to manually create accounts and receive
OTP's for each or is there a script ready for that as well that I
can implement?
What should be the duration between each messages and
how many messages from one single account.
How to shuffle between accounts while send messages? Manually or is there again a script
ready for it?
Please guys I really really need help. If not 500k how many can i send per day maximum.
You can send up to 20 messages per second in the same chat on Telegram.

Telegram : how to get the total unread message count?

For one of my projects, I need to fetch in real-time the total unread count of telegram messages
As shown under, it's possible to do it in Telegram Desktop client :
https://telegra.ph/file/d58a4c36084d79781f89c.png
it's also possible to show it on other clients
so, I wonder how I can simply do it
maybe through the Telegram API, however I didn't find anything related to this
(we can get unread mentions and unread reactions, but only for a specific chat)
An integration in python would be the best for me, as I don't really master other languages yet
NB : "fetch in real-time", not needed to have it every millisecond, but maybe each 2-3 seconds

Rate limits on RSS feeds (youtube)

I am making a discord bot in python which would ping me whenever the YouTubers I wish to keep track of upload any video.
So at first, I thought of using the Youtube Api but I couldn't find anything for this specific topic. Then I found RSS feeds.
So my main question is, what are the rate limits on calling the URL (https://www.youtube.com/feeds/videos.xml?channel_id=xxx)?
As the plan, I have in my mind is that I will make an HTTP request to the URL every x seconds, and if it sees any update, it pings me in my server.

Telegram bot API limitations

If you open telegram bot FAQ you can see 1 message per second inside particular chat, 30 messages per second inside group chat and less than 20 messages per minute inside group chat.
I have simple telegram bot with simple rate limiter:
it doesn't use group chats;
it sends only 1 message per second inside particular chat;
it sends less than 20 messages per minute inside particular chat;
But i always receive 429 error:
"error_code":429,"description":"Too Many Requests: retry after 236"
I confused since i don't violate telegram limitations. Please, help me to find problem.
Source code here, bot uses this library for interaction with telegram in poll mode. Steps to reproduce:
1) python3 bot.py;
2) /start in bot;
3) click "Спектакли";
4) click very fast on "Трагикомедии" or "Драма";
Your msg_count seems is tracking sended messages for each private chat. But it should be global, beacuse its seems that your current code allows your bot to send a few messages per second to unlimited users. So it would probably exceed the limit.
If you're sending bulk notifications to multiple users, the API will
not allow more than 30 messages per second or so. Consider spreading
out notifications over large intervals of 8—12 hours for best results.
Telegram Bots FAQ

Categories