I want to show my telegram channel contents in my wordpress website.
Is any way exist for stream telegram channel contents to my wordpress?
It is possible with Telegram Bot API. Basic idea:
Create a bot that can post to your channel;
Create an interaction layer between your site and the bot (for example, REST API);
Post something via your bot;
As soon as you post, your bot should send the post to both channel and website.
Also this can be done with the console client (channel_history command).
You can use this plugin : 'TelegramsChannelToWP'
first you must get API-key from :
http://en.tele-wall.ir/api/register/
then enter your site and your favorite channel
install plugin TelegramsChannelToWp
in setting page enter api-key and channel's username
add TelegramsChannelToWp widget.
Finish
https://github.com/mahdizolqadr/TelegramsChannelToWP
You can take a look at WP Telegram. It works very well from WP to telegram; moreover, it provides widget to show telegram channel or group on WP.
Related
I am trying to show telegram channel's post on wordrpess website.
I had a look over the telegram api documentation but, I did not get any API Or Any solutions.
I have a bot which creates messages including some urls provided by users.
Telegram creates link previews for those urls. The previews are cached.
Sometimes the content of the url changes, then the preview provided by Telegram is outdated. So I need to update the link preview provided by Telegram.
Telegram link previews can be updated using https://telegram.me/webpagebot. But according to Telegram Bot API, a bot can't talk to another bot to avoid infinite loops. So opening a chat between my bot and webpagebot to request the update is not an option.
How could I force the update of a link preview from my bot? Is there some http request, API, or whatever to do it programmatically?
You may add a randomly generated variable to the end of the link, so Telegram looks a link as a new link, like this:
Suppose a old link is like:
https://example.com/offers/106-tatasky-recharge
If you change og_image, title, meta description of this page, then use the above link as:
https://example.com/offers/106-tatasky-recharge?t=18121980
I think, it solves the problem.
It's the first time that I used Telegram Bot and I'm looking for a way to create a membership channel, in particular:
I have a website where the users can subscribe a specific mebership level and this give access to a specific feature of the site. Actually I was able to create a bot and establish a communication with the site through the channel (where the bot is linked). In this way, each time that I publish an article on my Wordpress site the users of the Telegram Channel can see the article.
The problem
In this way, all the users of the cannel can see the article, I want show the message that contains the article only to the users which have subscribed a membership on my WordPress site. Is there a way to achieve this?
Adding a channel to your solution adds extra complexity. Suggested solution as your requirement:
Add telegram web login to your website. After that you will have access to those users to send them a message via your bot.
Send your messages only to whom have an active subscription.
This way you can also remind individual users in case of expiration of their subscription
I am working on an telegram bot, and looking for the exact URL schema to popup the "Share / Select Group / Send to" dialogue in the telegram client.
I have seen this link in #pollbot, for which I took following screenshots.
A bit more details:
What I want is to give end-user an easy way to add the bot to their group, just like what PollBot does: When a poll being created, PollBot will return a special like to the user. Any by clicking that link, the user could easily add PollBot to a group. So I'm looking for the exact URL schema of that link.
I then check that link PollBot sent to me in telegram web client, and found out it's a tg protocol url: tg://resolve?domain=PollBot&startgroup=5148bed5f90678b93246464b3e132052. So I tried to resend this url via bot.sendMessage. But it turned out Telegram api server won't parse the tg://resolve url.
So, how could the bot manage to send such a link to the user?
The link there works with deeplinking, please read about it here:
https://core.telegram.org/bots#deep-linking
the url has the following scheme:
https://telegram.me/<YourBotUsername>?startgroup=<Payload>
the startgroup part (parameter) of the url tells telegram to open the 'add to group' dialog.
when you choose a group there (and you can add bot's to it) the bot will be added to the group and /start PAYLOAD will be send to that group.
The Payload is what you defined as value of the startgroup parameter, so your bot can assosiate it with something and send the matching reply.
please mind, that the Payload can only contain certain characters and don't mind that the telegram clients might internaly convert that link to an tg:// url.
you can also use start instead of startgroup to open a private chat.
Is it possible to get my telegram channel's "Recent Actions"?
Main reason for doing that, is to get members who joined the channel or left it.
Any suggestions?
It didn't supported by bot API, and no existing library can do this.
You can use channels.getAdminLog#33ddf480 in MTProto.