How can I find telegram user by id - api

I'm using telegram bot and can get user id from incoming message.
Sometimes I want to find users who communicate with telegram bot and write them message by myself.
I have only user id and have not some additional information about the user.
Can I somehow find users by id or anonimity with only id available is by design?

At least what I've been using...
Program your bot to send you a message with link to that user.
This can be done by using link in your message (must be used as message entity or inline keyboard button):
tg://user?id=<user_id>
Or in case you are using MarkdownV2 for formatting
[inline mention of a user](tg://user?id=<user_id>)
Then, by clicking on that link, you will open a user profile, where you can message your target.
Note, user can change his privacy settings, and disable mentions. In this case these links will not work.

Related

Hangouts Chat - Send link to add bot to space

I am building a Google Hangouts Chat chatbot.
I need my bot to prompt users, following a dialog with another user. However, a conversation may not have been started with these users yet and I do not have permission to start one without being added to a DM space.
The current solution I envision is to prompt users by email. However, I cannot find a direct link to the bot, or that adds the bot to the user's space. Does such a link exist? Or do I have to send an email with instructions such as "Please go to chat.google.com and add the bot to a conversation"? I'm afraid this will generate strong churn.
Thank you.
Bots can only be added to a space by a user so yes, you will need to instruct the user to add them manually

How can I customize AWS Cognito default confim message?

I am using AWS Cognito to verif users' emails by sending verification links to users' email. After users click the links, a default confirm message "Your registration has been confirmed!" is shown. Is there a way to customize this message?
Thank you!
Currently (late June 2018) this still appears to be not supported. It is a pain because users should be redirected to the app in question after confirming their account, but currently they must navigate themselves.
There is a proposed workaround (essentially customizing the confirmation e-mail to send the user to your own API that performs the confirmation in a lambda), but I have not tried it. There does appear to be demand for this and AWS is aware of it as a feature request. I've seen them adding more customization abilities to the Cognito console recently, so keep checking there for updates.
If you're using the Cognito-hosted pages, you only get what you get which is going to vary depending upon when you're reading this message. Here in late 2019, the Cognito-hosted page redirects successful logins and confirmations (of phone/email) to whatever you specified as the redirect URL.
My issue is similar. After the user signs up, I want to customize the CSS of the confirmation page which doesn't appear possible. The confirmation page isn't great because it means that if the user closes the confirmation code entry tab before entering it, then their email is in the system but unconfirmed. And there's no way to confirm it. It's stuck. I'd like to have giant red letters that say "DO NOT CLOSE THIS CONFIRMATION TAB. CHECK YOUR EMAIL FIRST!" but there doesn't appear to be any way to do this at present.
The solution to any of these "how do I customize X of the Cognito-hosted flow" is either (a) look in the available UI customizations or (b) if they aren't available, change to an entirely hosted flow (still Cognito... just using your own pages and URLs).

Mailchimp API (v1.3): addresses added with listSubscribe() don't appear in dashboard

I'm using Mailchimp's API (v1.3) to add email addresses to a subscriber list on one of our sites. Obviously, I'm using listSubscribe() and everything is working fine, for the most part (read: API call returns true, all of the data I'm sending to Mailchimp gets added/updated correctly).
The problem, however, is that whenever a new address is added, the things that are normally supposed to happen (in particular: email notifications to list manager, addresses showing up in the dashboard list status stream) aren't happening.
I've looked around for quite a bit and haven't found anyone with the same issue. Any ideas?
The default action of listSubscribe to add a subscriber is opt-in. This means that when you submit a listSubscribe the subscribed user will get an email asking to confirm their opt-in.
If the user does not follow the link in the email then they will not appear in the dashboard.
You can bypass this by using:
'double_optin' => FALSE,
http://apidocs.mailchimp.com/api/1.3/listsubscribe.func.php
However this is only recommended for very occasional circumstances (essentially where you are handling the opt-in).
In my case I am not activating a user account until they verify their email address. If let the opt-in email be sent then the user is going to get a number of emails from my web app. I'm being very careful to make sure that they're verifying their subscription and all subscription stuff is being processed by the web app (eg a user unsubscribes within the web app, not via MailChimp).
I talked to the Mailchimp support, and they said those actions won't happen using their public API; there is no way to trigger them.

How to send some additional app info when user sends email using MFMailComposeViewController?

Is there any way to make my app send to me some additional app info when user sends an email from inside my app using MFMailComposeViewController but without enabling the user to delete or change that info? For example, I would like to receive with every user email some info like what is the device user is using, or number that shows how many times user launched my app, etc., but I don't want the user to have the option of changing or deleting that info in email. Is there maybe some other way of doing this? Thanks.
Create a public key encrypted attachment with the info you want to send.
If you are using email to gather feedback from your user, we have a feedback form that you can add to your app instead. Along with the user name, email, and comments, we do include information like device type and os version (the user doesn't see this). The form background color can match your app's color theme. Some developers have asked for that customization. You'll also get to specify feedback types and categories. This lets the user self classify the feedback. For example, feedback types can be "suggestions," "bugs," "testimonials," and "questions." Categories are sub types, which allows for narrowing down the feedback being given. You define the types and categories. The user chooses them while filling out the feedback form. All the feedback is sent to our feedback center for you to view, sort, respond, set status, group, and manage. You can be notified by email when feedback arrives.
Learn more at: www.SimpleFeedback.com - iOS Feedback

How can I send message to specific chatID?

I have chatId and want send messages while execute some tasks from java code. I found this explain on telegram "Bots can't initiate conversations with users. A user must either add them to a group or send them a message first. People can use telegram.me/ links or username search to find your bot." But my task works good when I use https request directly from browser. My bot perfectly answer for requests but how I can do this without user request?
I can not truly understand your case!
Anyway, your bot can send a message to a chat ID Only if the user witch blongs to the specified chat ID added your bot (send start to a bot).
and if it happened then send your message with
/sendMessage