I have a channel with ~15 bots which post 3-7 photo with caption message per minute.
Later I want to edit caption of some of this message (editMessageCaption bot method) but unexpectedly get such error in some case:
{"description":"Too Many Requests: retry after
6","error_code":429,"ok":false,"parameters":{"retry_after":6}}
Most editing requests are successful, but the error may appear even if I try to edit 3 minute old not edited message from 1.5 min IDLE bot (same bot that post message, of course). This is strange, because I don't know what the limits are related to in this case. I try to use different ip-address, but can't find any difference in successful/unsuccesful request ratio.
Probably this is global limit for channel or for bot owner account?
If you have encountered this situation, please share your thoughts.
That's Bot's limit. Since telegram have floodwaits use try and except and except and wait for the floodwait to cool and try again.
Related
I’m having a problem with a bot that has to reply automatically when a message is posted in a Teams channel. When it is activated, it also responds to messages that were posted prior to its activation. How can i avoid this ?
Thanks for your help
I'm assuming you're running a flow with a Microsoft Teams trigger.
I can see two possible causes of this.
This first is that Microsoft's Team trigger doesn't work very well and is firing for previous posts while the Flow is disabled. Very plausible
If that's the case you need to make a Condition to check if the post date is greater than the current time minus say 10 minutes, AddMins(UtcNow(),-10). If successful, continue, if not, terminate.
Hopefully, you can pull the post date directly from the Teams trigger, but if not you'll have to use a Teams action to look up information about the given post id provided by the trigger.
The second possibility is that you're not taking the ID from the trigger which will tell you what post to respond to, and accidentally doing some kind of reply to all posts in the channel.
I am creating a Kik bot. It doesn’t seem to be technically difficult.
I have created a new Kikbot under a Kik account A .
User A can automatically subscribe to Kikbot,
but when another account B subscribes to Kikbot,
it shows that the number of subscribers exceeds limit.
I find some informations, and it seems that Kikbot need join to Bot Shop .
About half a month ago, I submitted Kikbot information to dev.kik.com,
but the reply always is Pending Approval from then on.
I am very confused now.
Is there any way, what is going on?
and what is the problem?
Let Kikbot be displayed on the Bot Shop as soon as possible?
I even sent three emails to Bots#kik.com ,
but No response.
Do I need tell my boss that I am going to quit this project now ?
Same for me, very fast to deny if bot does not answer to text for example, but none if the bot is ok...
Ups, check that comment:
https://stackoverflow.com/a/61868376/15436636
I have successfully created a Glip bot in the sandbox and registered the corresponding webhooks, following the instructions found here: https://ringcentral-api-docs.readthedocs.io/en/latest/glip_bots/
When testing in the sandbox, I only get a webhook payload about 50% of the time when the bot is spoken to in a conversation. I would expect to get one every time, since the bot has a subscription for posts, and is a member of that group. Additionally, if the subscription wasn't working at all, I would expect to get it 0% of the time. Literally the same text will trigger it once, but not the second time.
I determined that there was nothing wrong with the endpoint by using Postman to simulate webhooks. Every time I created a simulation, the bot became aware of the post and responded accordingly. So it isn't the endpoint. It would appear that RingCentral Glip is not calling the endpoint every time it should.
It could potentially be a sandbox issue but I don't see any documentation that supports that theory. The specific event that's not firing every time is "/restapi/v1.0/glip/posts". As I continue to investigate I thought I'd reach out to see if anyone else experienced this issue, or has suggestions on how to debug.
My fulfillment needs to do a lot of processing after receiving a certain request from Google Action/API.AI and the default response timeout is 5s.
https://developers.google.com/actions/components/fulfillment#nodejs
Is there any way I could send a delayed response or send a POST request after the results are ready?
The short answer is no - you must respond within 5 seconds, and there is no way to send a notification back through the Assistant at this time.
The slightly longer answer is that we know notifications are coming - but we don't know if there will be an API for them. There have been rumors about other ways that may be coming that allow us to work around the 5 second limit.
The even longer answer is that, if you are using Action Transactions (ie - allowing the user to purchase or reserve something) you can send updates after the fact. However, Transactions are still in developer preview and don't work on all surfaces (they don't work on Google Home at all, for example).
I have created a test bot named pepememe.bot using the python library provided by kik. The bot works fine when I am chatting to it using private message.
But fails with the below error when I use it in my group.
kik.error.KikError: {"message":"You are not allowed to send a message to this conversation","error":"Forbidden"}
A point to note is that it did work for sometime in my group, but suddenly started throwing that error. I have emailed Kik Bots Support about this, but they haven't replied back. What should I do to solve this issue?
I see that your bot is not approved.
There is a 50 subscribers limit for unapproved bots, check if you are over the limit.
Also it is possible that Kik blocked access to group chats for unapproved bots.