How to create a link to contact specific phone number via Telegram?

Update (2022): Links to phone numbers such as https://t.me/+1XXXXXXX will lead you to a web page the same as username links do, but you can only start chatting with the user if their privacy settings allows you. Old answer: It’s NOT possible to link to Telegram like this for a phone numbers so far, because … Read more

How to use Telegram API in C# to send a message

Install-Package Telegram.Bot Create a bot using the botfather get the api key using the /token command (still in botfather) use this code: var bot = new Api(“your api key here”); var t = await bot.SendTextMessage(“@channelname or chat_id”, “text message”); You can now pass a channel username (in the format @channelusername) in the place of chat_id … Read more

How do I get authentication in a telegram bot?

Update: I created a GitHub repository with a very simple PHP application to illustrate the concept explained below: https://github.com/pevdh/telegram-auth-example Whether you use a webhook or not actually does not really matter. The “deep linking” explained: Let the user log in on an actual website with actual username-password authentication. Generate a unique hashcode (we will call … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)