my Bot Recently get chennel_post message type from telegram api.
this message type sended by a telegram channel?
please help me.
Thanks
Your bot can now get updates about posts in channels. Added new fields channel_post and edited_channel_post to Update.
Ref: Changelog
Related
I want to send the message to anybody by using his telegramid and python_telegram_bot library.
I can send the message to me by using below code but if I put other's id then I can not send the message and it says chat not found message.
updater = Updater(mybot_token, use_context=True)
updater.bot.send_message(chat_id = receiver_id, text="welcome")
I am not sure why it is only possible to send the message to me, not the others even though I puth the chat_id as their telegram_id.
Bots can only send messages to users that have already started the bot. See the Telegram Bot docs.
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.
I am using the HTTP API for Discord and I need to get the users in a specific voice channel. What endpoint is used for this?
Thanks, any help is appreciated.
I believe this isn't possible.
Voice state update events are fired via the Discord WebSockets and there aren't any equivalent API endpoints available.
I'm developing a Telegram bot, and I want to know whether a user, that has started a private chat with my bot, has seen a certain message sent by bot, and to know when has he seen it.
Is it possible to do so?
Thank you very much.
That's currently not possible.
I'm using this solution.
Create a channel specially for your bot
Let your robot send message from this channel to users, you can use forward method.
Now you can see how many users have seen your message
Telegram Bot API has limit functionality. There is absolutely no way to get message view count at the time of this comment.
Usually TDLib can be used instead of Telegram Bot. It is Telegram client library. You can use it directly or make it as services for BOT to call.
For example. use TdApi.GetMessage to get the message, and the returned message has field of interactionInfo which contains forwardCount or viewCount.
perhaps this answer help you :
in the end of your message place
link example : yoursite.com\checkvisit.php?id=1234
when user open message link automatic run for telegram ...
you can understand message was read
you must in checkvisit.php set to check db if id exist and not read set it to read
then id in db remove or disable
but this method simple - telegram must add 1 parameter to return this
sorry my english not good
it is not possible yet , you might want to search for Madeline bot
I create new bot in telegram bot ,and do steps like here :-
https://core.telegram.org/bots#
But now i need when any new user join in my bot, i need to show him welcome message.
How can do that ?
Use /setdescription and /setabouttext #BotFather commands
You must send these commands to #BotFather
/setdescription
then send your bot id like:
#example_bot
and send you welcome message
Welcome to my bot
You need to implement the /start command in your bot realization - set the welcome message.
And you should describe this command in chat with #BotFather via /setcommands for your bot.
After that when user adds your bot, the /start command fires automatically, and he will see the message you implemented.