Google hangout chat data with out bot - hangouts-chat

Is there a way to read the data from the chat messages in DM or Group with out adding the bot the DM or Group?
Similar to the APIs that are available to programmatically access the google drive, is there a way ?

Answer:
No, there isn't.
More Information:
The only API access you can get for Hangouts chat rooms is by using a bot. You can also use a webhook, but this is only for sending messages and not receiving.
You will need to use a bot to be able to do this.

Related

How to implement Telegram bot as a widget on your website?

I'm trying to create some sort of live chat widget, but with a Telegram bot instead of a real person on the other side. I don't know if it is possible, but ideally, there is a chat window that can be implemented on a website, and establishes a new connection with a telegram bot once you click on it. The end-user should NOT have a Telegram account. I already tried to implement Intergram but it's not exactly what I'm looking for, as it merely forwards the message to a human using webhooks, and the bot is only used as a message broker. I have heard that some customization is possible using tdlib but I'm not sure if it can help me achieve the desired result.
How should I start implementing a chat window with my bot on a website?

Google chat auto-reply bot

Is there any way to configure Google Chat so It will automatically reply when another user sends me a message? Similar to the way vacation reply works for GMAIL.
The trigger will be the message coming from a user. not calling any bot.
Sorry, unfortunately there is no way to do that
You can set your status as "Out of Office" and that will be reflected in chat.
https://support.google.com/mail/answer/25922?co=GENIE.Platform%3DDesktop&hl=en
The API is designed for bots so there is no way via API either.
You can always make a feature request, if you like.

Telegram bot analytics

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)

How to get specific channel chat history using telegram bot api?

I am using telegram bot api to get the chat history of a channel https://api.telegram.org/botXXXXXXXXXXXXXXXXXX/getupdates
my bot attached to the many channels and my query is that how to get chat history of any specific channel which is using my bot.
but when I am using getupdates method it shows all the message with all channel.
my query is how to get the solution using telegram bot API?
just like when we need to send a message to any specific channel using the used the https://api.telegram.org/botxxxxxxxxxxxx/sendMessage?chat_id=#channel id&text=message
i need a solution where I can send channel id and get the specific channel chat history using telegram bot API
my bot attached to the many channels and my query is that how to get
chat history of any specific channel which is using my bot
You cannot get the chat history of a channel using the bot API. However you can use the core API (tdlib e.t.c) to get the chat history. Alternatively you can try and scrape from the posts widget, but that is going to be too tedious.
but when I am using getupdates method it shows all the message with all channel.
You can manually filter out the channels since the ID is always in the Update object. I would suggest you use a library for this since it would be easier to implement the logic.

Is it possible to pin a message using Telegram API?

Is it possible to pin a message using the Telegram API? I would like to create a bot to pin messages in a chat group. I was unable to find an specific method to do it in the documentation:
https://core.telegram.org/bots/api
Is there any way to do it?
Thanks.
you should first turn off the group privacy mode of your bot in your BotFather panel.
then, your bot should be the admin of that chat in order to be able to pin messages.
finally, you can use pinChatMessage, unpinChatMessage to do the task.