By Admin on Friday, 26 November 2021
Category: All

Telegram Request Phone Number or Location

​From sgcWebSockets 2022.1 the Telegram Client component is able to request the user the Phone Number or the location when has login as a bot.

Find below an example code in Delphi, CBuilder and .NET

Delphi Example 

CBuilder 

.NET Example 

Telegram 

​When the message is sent by the bot, the user see a button where asks if want to share the phone number.

​If the user consent to share the phone number a new message with the phone number is sent.

Related Posts