telegram

Starting a Telegram API instance

ε祈祈猫儿з 提交于 2019-12-03 13:13:44
Hi! Telegram API beginner here! I'm developing a PhoneGap app that features a messaging service using the Telegram API. I'm currently following the API guide and I'm now reading the getting started guide for authentication . However, I find that it is currently insufficient and not Jimmy Proof . How does one create a Telegram API instance in one's own app? After initialization how does one authenticate a user? From the link provided, this can be done with the auth.sendCode method. But to what class does this method belong to? Referencing some documentation in the Git Hub page ... To create a

Can i get a phone number by user id via Telegram Bot API?

时间秒杀一切 提交于 2019-12-03 11:34:29
I'm using Telegram Bot API for sending instant messages to users. I've installed nuget package . This package is recommend by telegram developers . I've created a telegram bot and successfully got access to it by using code. When I send messsage to bot, bot gets some info about sender. I need the phone numbers of users to identify them in our system and send the information back to them. My question is Can i get a user phone number by telegramUserId ? I'm doing it for user convenience. If i could to get a user phone number I should't have to ask for it from the user. now my command like this:

Calling Telegram API to create a feedreader bot [closed]

南楼画角 提交于 2019-12-03 10:01:17
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I have seen New API for bots are enabled to create custome bots,I have seen some sources such as this and this I have also read about @fatherbot which is about registering bots,I also searched about some examples about telegram bots such as this one,I know how write codes in php

NDK Error occured while importing telegram source code from github

限于喜欢 提交于 2019-12-03 09:13:29
I downloaded telegram open source code for android from the following the link https://github.com/DrKLO/Telegram . While importing the project am getting the following errors: External Native Build Issues Build command failed. Error while executing process C:\Users\user\AppData\Local\Android\sdk\ndk -bundle\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Android.mk NDK_APPLICATION_MK=C:\Users\user\AndroidStudioProjects\Telegram-master\TMessagesProj\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS

How does telegram shows the Icon of some websites?

◇◆丶佛笑我妖孽 提交于 2019-12-03 08:30:56
问题 I am working with telegram on windows and its online version on web.telegram.org, when I share a link with my friend Telegram shows the icon or logo of some websites in that message: Image The first website is vajehyab.com and it has a favicon too (But do not showing that website icon), and the second is Stackoverflow and as you see the logo of stackoverflow and a litle description shows beside it. Does websites do something or having some metadata that allow Telegram to access their logo, or

Telegram API with Google Apps Script

非 Y 不嫁゛ 提交于 2019-12-03 07:29:27
I'm searching an example of Telegram API usage with Google Apps Script, or anyone/anything that can help me to learn how to use this API, for instance to send a message to a certain user I was searching for something similar, and couldn't find any, so I have made my own, I will write it down here perhaps someone would make use of it. This is a simple proof of concept that works: function sendTelegramNotification(botSecret, chatId, body) { var response = UrlFetchApp.fetch("https://api.telegram.org/bot" + botSecret + "/sendMessage?text=" + encodeURIComponent(body) + "&chat_id=" + chatId + "

How to hide ReplyKeyboardMarkup after user click in Telegram Bot API

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 07:00:32
I am using Node.js telegram-bot-api . Idea: Show a custom keyboard with one button - "Share my phone number". When user clicks this button, contact should be sent and button should be removed from screen. Here is a code I am using right now: bot.sendMessage({ text: 'Please give us your phone number', reply_markup: JSON.stringify({ keyboard: [ [{ text: 'Share my phone number', request_contact: true }] ], resize_keyboard: true, one_time_keyboard: true }) }); Problems: When user clicks "Share my phone number" button, it shares his contact but button is visible even after that. When I am not using

How to send an Embedded Image along with text in a Message via Telegram Bot API

喜夏-厌秋 提交于 2019-12-03 06:11:29
Using Telegram Bot API, I'm aware that it is possible to send an image via https://core.telegram.org/bots/api#sendphoto However, how can I embed a remote image into a formatted message? The message I am looking to send, can be compared to a news article with a title in bold, an image, and a longer text with links. I figured out how to create bold text and links with markdown, but I'm failing at inserting images. How can we do that? barzin.A you must set ParseMode in HTML and set your Image Url in A tag like this: <a href="' + image + '">‍</a> ‍ -> never show in message You can use zero-width

How we should send query to Telegram bot API?

≡放荡痞女 提交于 2019-12-03 05:59:01
问题 After creating a telegram bot and gain bot token, I want to send a request to the bot API. This link says we must send the HTTP request like this: https://api.telegram.org/bot<token>/METHOD_NAME and brings example for easiest method "getme" which has not any input parameters. Imagine I want to send some messages. I should use the sendMessage method which has two Required input parameters: chat_ID and text. Now my Questions begins: How can I write this sendMessage method in above request

How do you clear the Open Graph cache of an URL on Telegram?

对着背影说爱祢 提交于 2019-12-03 04:12:11
问题 When I send a new link on Telegram, it automatically reads Open Graph data of the URL and generates a preview of the page. When the Open Graph data of the same page changes, though, Telegram doesn't update its preview: it has cached the old Open Graph data! How do you clear the Open Graph cache? Preview Example: For the URL https://asp.net/ Telegram is reading the following tags: <meta property="og:site_name" content="Microsoft"> <meta property="og:title" content="ASP.NET | Open-source web