telegram private channel unique invite link - telegram

i create a private channel in telegram.
i want to know if there is any way to create an unique invite link that i can share to people i want to join my channel. unique like single use.
actually telegram gives you an invite link but its always the same so if i give it to a person he can give it to anyone he wants. i need a method to avoid this. i'd tried some url shortening services to hide the invite link but at the end they still show the iniztial invite link.
any suggestion?
i'd tried http://once.ly/index.html

Edit:
Now you can generate unique links for different people, and limit how many people can join and change the expiring time!
Original answer (2017):
There is no way to create a unique invite link at this time.
But if I were you, I would create a bot, send link via bot with inline button, which is default hiding link behind text.
For example, you give your user a link like t.me/bot?start=channel_link, and when your bot received /start channel_link, send a message with inline button with url parameter.

Try this one from the documentation.
start=channel_link

Ok, now this is possible using tg bots: the createchatinvitelink endpoint is available and has member_limit param. Set the latter to 1 and the link becomes "unique".

Related

Why do some telegram channels use names and others not?

Usually, telegram channels use specific names for shortcut links, e.g.:
https://t.me/lifeyt
However, sometimes I see channels without a specific name but with the join link:
https://t.me/joinchat/AAAAAEG9D2xsO4xhFP_EFQ
Any idea why is that?
This is a matter of channel types. Public channels have a link which can be set manually. A private channel has a randomly generated link. It can be revoked/reset any time.

Can I extract and automatically message users on a TG group?

I’m part of a telegram group. I can see other users on the group, and I can message them individually (and manually). Is it possible to automatically (programmatically) message all the users on the group individually? Note I am not the admin.
If it is indeed possible, is there any sample code you can share?
It would be particularly awesome if the message could be customized for admin and non-admin. This means I’d need to detect if a particular user is an admin.
Thanks
I'm not sure if I get what you are looking for but I assume you have a Telegram Bot and wanna message all users in an specific group/supergroup. First I have to remind you bot can't start private message according to this link
Bots can't initiate conversations with users. A user must either add them to a group or send them a message first.
If I got it wrong feel free leave comment and I will update the answer ASAP ;-) ^_^

LinkedIn API V2 - How to get profile photo used for an organization?

I'm using the endpoint https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&projection=(elements*(organizationalTarget~(localizedName)))&oauth2_access_token={{access_token}} to get all organizations for a user. I tried different projection fields but still wasn't able to get the profile photo. Is there a way to change projection to get photo or is there possibly another endpoint to get this?
I could not figure out a way to get back a logo with the organizationalEntityAcls endpoint. I do not believe its available.
Instead I called the organizations end point with the ids send back from the above.
NOTE: organizationId is just the id not the full URN.
https://api.linkedin.com/v2/organizations/{organizationId}?projection=(logoV2(original~:playableStreams)),
It is possible actually. This is the call that worked for me.
https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&state=APPROVED&projection=(elements*(organizationalTarget~(id,localizedName,logoV2(original~:playableStreams))))")
Ervin Kalemi's answer is actually right if you want to get photos for all organisations instead of a single organization, but the URL is not fully correct at the end. This URL will work:
https://api.linkedin.com/v2/organizationalEntityAcls?q=roleAssignee&role=ADMINISTRATOR&state=APPROVED&projection=(elements*(organizationalTarget~(id,localizedName,logoV2(original~:playableStreams))))

How do I know with telegram bot if a user has changed telegram profile photo?

How can I get a picture when the telegram user changes his main photo? Can I get this without cron?
I assume that you know getUserProfilePhotos method.
You can't get notified when users changed their profile photo, so you need to track it, like using cronjob.
You can use getUserProfilePhotos feature and save the last profile picture in a database. Then by checking the last profile picture in specific time periods (for example every 30 seconds) you can check whether the picture is changed or not. And if it was changed you can notify yourself.

Is it possible to have a QR code go to a website AND send a SMS message with the same link?

My boss wants me to fashion a QR code so that when the user scans it, it displays a button that when clicked:
(1) Will take the user to our website.
(2) Will quietly send us a text message.
The purpose of #2 is to allow us to gather their phone number.
In addition to being a privacy violation, I'm pretty sure this (and any other means of achieving this), is technically impossible. Is that correct?
My understanding of QR codes is that they only contain text. That text may contain keywords which a good reader may parse and display buttons for. It seems the closest I can get to my employer's requirement is to use an SMSTO: link in the QR code, so that (given an appropriate reader) the user is prompted to send us an SMS, at which point we can get their number.
Can anyone think of another way of doing this?
(any other clarification also welcome)
It is technically impossible.
As you say, the best you can do is create an smsto: link.
What you can do is create a code with the instruction
"Scan the code to receive our website by SMS"
Then, create a code with
smsto:123456:website
This will send the keyword "website" to a phone number. You'll need to set up a phone number which can auto-respond with the URL you want. There are commercial services which do this (depending on where you are in the world). Or look at a service like FrontlineSMS which can send the texts on your behalf.

Resources