Telegram bot analytics - telegram-bot

I have checked telegram bot api web but could not find analytics api for bot, is telegram provide
analytics api for bots, if yes any one have reference it will helps me a lot

the Telegram API does not provide you with a way to get analytics. It is only an interface to operate the bot automatically.
However, there are services like this:
https://www.integromat.com/en/integrations/google-analytics/telegram
You can check it out and see if it fits your needs.
Whenever you build a database you can create metrics and analytics.

To analyze statistics, Telegram Robot, you must save anyone who starts the robot in the database(json data base or mysql or etc). To do this, you can get the user id (it is easy to get the user id)

Related

How to integrate Google business messaging through API

Problems:
I am unable to enable Business Messages API, Because "Business Messages API" is not showing API list, While i am going to enable the API through the
https://console.cloud.google.com/apis/dashboard
I want to use auth token, while hitting the API, but the document is saying use the service.json for the credentials. i am following these doc. I am using "Google\Client()" with Laravel application.
https://developers.google.com/business-communications/business-messages/guides/how-to/agents?method=api
I am following these steps:
Login with google business account in the Dashboard
App taking multiple permissions as I have attached the permissions list and taking the auth token.
Open the chat box for the Business.
So please guide me, where i am going wrong. What is correct way to implement this.
Requirement:
I want to create a custom chat box for google businesses, Where business owner will login into the web app and He can easily manage the multiple business chats in one dashboard.
As per your given information, you have to be a partner of Google. As per google documentation, you need to be a partner of google and then you can create the agent and can send and receive messages. You can integrate the business messages API by following this documentation:
https://developers.google.com/business-communications/business-messages/guides
In this process, you need to be a partner of Google. The complete process is given on the link. If you follow this link, then you can use their built-in libraries easily and can send messages easily.
So far the permission for API, it might not be found for you because you might have to take permission for the particular project that is registered on google and then you will see the business messages API and you can enable it and use it. The reason as per the basic step:
https://developers.google.com/my-business/content/basic-setup
Sometimes, you have to submit the request form to take the API access for particular APIs. Or Share how are you using that API.
If you do not find a form for business messages API then you can ask for the information from bm-support#google.com. they mostly respond on a working day.

Is there a way to use WhatsApp API with third party apps?

I am new to using WhatsApp API. I am not sure but it seems that the api is for business users only. I want to use the api to send messages to users automatically based on a change in an app, (say PowerBI). I want to send updates regarding a report whenever a change is made and send it through whatsapp instead of email.
Yes, WhatsApp API is for business users. But, if you still looking for a WhatsApp bot I recommend Twilio, there are a lot of content about it in the internet. Check out this video, It's using python and really easy.

Can i wirte follow/unfollow bot with Instagram?

I want to Write Bot for Follow/Unfollow user in instagram , but instagram Api deprecated Follow and Relationships ...
can i use instagram Api for this goal or must be use selenium automation ?!
As per this article the Instagram API no longer provides functionality to follow or unfollow users. Looking at the current endpoints provided by the Instagram API the set of operations looks very limited - fetch a user, or a user's latest media, and get a list of comments on your media. You can view the changelog for the Instagram API here.
So to answer your question, no you can no longer use a bot to follow or unfollow a user via the Instagram API. Yes you will be able to write a Selenium script that will do this.
Try https://www.instagram.com/web/
https://www.instagram.com/web/friendships/6810462142/unfollow/
6810462142 = ID USER...
I think it works
You may need to use a tool such as Keygram - https://www.thekeygram.com
It does exactly what you are looking for with the follow/unfollow

Getting information about many users using Spotify's API

I've looked briefly through Spotify's API documentation to try and see what exactly can be done with the API. I'm trying to do some data analysis on Spotify data, specifically on user listens / user playlists. However, as far as I can tell, the only way to uncover that information is through OAuth, and each user whose play information I desire would need to explicitly grant permission to my app to use their information. Since I am not building a user-facing app and am interested in doing mass analysis on many users at once, I don't think this would work for my purposes.
My question - is there any way to return multiple users' listening habits through a script that pulls data from Spotify using its API? Or is that possible strictly by way of an application that one user at a time gives authentication to when they load an app that uses this API?
is there any way to return multiple users' listening habits through a script that pulls data from Spotify using its API?
Spotify doesn't expose users' listening habits unless they authorized the app requesting it (I think this is what you meant when you said "through OAuth"). There's pretty big privacy reasons for not exposing users' data to the world.

Bot sending an interactive google map to Telegram user

A bot wants to send a map with specific lat/lng point to a Telegram user. When clicked that map should lead user to an interactive map version.
I saw one bot (SberbankBot) can do that, but I need to know how exactly.
I'm using Python 2.7 + telepot library.
As #mymedia pointed out in comments, you can use sendLocation method of Telegram Bot APi, and using telepot:
bot.sendLocation(chat_id, latitude=lat, longitude=lon);