Telegram Client API. How to find channel/user? - node.js

I didn't see a findChannel method in the documentation.
Is there something like api.telegram.org/findchannel?token=MYTOKEN&query=channelName.
I also searched for a javascript library but I couldn't find one.

I didn't find anything about problem in documentation.
What did you mean by this? I guess you meant that you didn't find anything related to the the problem you faced in the docs.
To answer your other questions for now there is no method in Telegram's API for finding channels.
And also I guess you are looking for Javascript (Node.js) libraries for working Telegram bots. There lots of them but this are the ones specifically mentioned in the docs
Telegraf. Full Telegram Bot API support, including games and inline mode.
Telebot. Easy way to write Telegram bots.
Botgram. Microframework to build Telegram bots.
Telegram-node-bot. A node.js module.
Node-Telegram-bot. A node.js module.
Slimbot. A fuss-free, thin wrapper around Telegram Bot API for Node.js. No frills.

Related

Set read status of getstream.io notification feed via rest api or php sdk

I need to update read/ seen status of getstream notification feed via rest api or php sdk. Would be a great help if someone can help me out on this.
Reason is, I'm using rest api to integrate getstream with a flutter app Im developing. I though it would be easier than using native sdk as Im only using small amount of features
Answering my own questions as this was real tough to find,
https://getstream.io/docs/flat_feeds/?language=php&q=mark_seen#notification_feeds

Connect Bot built with Microsoft Bot Framework to other connectors/Channels too

I have built a bot using Microsoft bot framework. Now I want to connect it to channels which are not supported by the Microsoft bot connector. However, I need to build an interface (or a substitute for bot connector) to connect to those channels. But as I am using Bot framework SDK (NodeJs), I need the best approach to expose the endpoint of my bot engine to other connectors/channels.
The Bot Framework has a mechanism specifically for this scenario, called Direct Line. Essentially, you build the UI interface yourself, but use the Direct Line API to forward events to/from the Bot Connector. You can use the Direct Line REST API, or find an npm package where someone has taken care of the underlying plumbing for you, as in the botframework-directline.js package. Microsoft has some node.js BotBuilder-Samples on their GitHub site too.
Note: The typical way to get the best help on SO is to post code of
what you've tried and that gives people a better idea of how to help.
I understand you don't know where to start, so that doesn't help much,
but maybe it will explain why you're getting Close flags.

how to write own logic without using qnamaker

I am still trying to understand Chatbots. Currently i have already made chatbot which is integrated in skype. I have Sharepoint online where user search for FAQ. If they dont find then they ask BOT which sends request to LUIS and Qnamaker.
Qnamaker then sends response back by looking it into its database. I upload FAQ from sharepoint to Qnamaker using sharepoint workflows. But i want to write my own logic and get rid of Qnamaker.
What are ways to do it? Any good tutorials? I also wanted to know how the flow happens. For example if we dont use Qnamaker then we fire queries in sharepoint based on what user asked? I dont understand how i can fire queries in sharepoint if user makes typo then we will not get anything from sharepoint. So any tips on how to implement this without using qnamaker is highly appreciated?
The FAQ bot generator is a subset of the main Microsoft bot framework. You should do some research on the Microsoft Bot Framework. The link above takes you right to the documentation overview of the bot framework and from there you can get into developing one. They have links to a few sample projects as well as a large number of code snippets within some of the article explanations. It has a full setup guide that will walk you through the initial setup so it should be easy to get a basic echo bot running, but if you are not a programmer you should stick to the FAQ generator.
I suggest you use either node.js or c# to develop the bot since these are directly supported by the framework. I am personally using c# to build my bot from the ground up. The purpose of mine is to be used within a customer facing android/ios app that will help with questions, checking the status of different things, and even paying bills.
Just remember you will need to manually set up your cloud hosting. I host mine in azure alongside a web interface I built for it (you can build the website inside your bot if you are using c#, just replace the default.htm file in the web.config with the main page of the interface).

How do I make slash commands work on my bot in Slack?

How do I make slash commands work on my bot in Slack?
I'm using chat.postMessage to have the bot post.
For example, if I type /giphy something, it pulls in a GIF image, but if my bot posts the exact same thing it does not do anything.
It seems like you won't be able to do what you're trying to do. As far as I can tell you can't have one Slack Integration trigger another Integration. It's not hard to replicate the functionality of the /giphy Integration, though.
It seems that Slack is not supporting this feature, because commands are only interpreted when typed in the browser or in the Slack application.
You can maybe workaround this by using a web browser automation tool such as Selenium or a similar tool.
I've already sent the same answer to How do I set a reminder via the Slack API?.

How do I access Google AdWords API with Node.js?

Is there a way to use node.js to access and manage a google adwords account?
I'm the author of an unofficial node.js client library for AdWords: https://www.npmjs.com/package/googleads-node-lib. It is getting closer to a feature complete client library every day. Pull requests welcome.
Yes, the library uses standard Javascript (it is built using Google's Closure library). What you might need to do is to write an HttpWebTransport adapter that works for Node.js. http://code.google.com/p/google-api-adwords-js/source/browse/#svn%2Ftrunk%2Fjs%2Fsystem%2Fsrc%2Fgoogle%2Fsystem%2Fnet has a few examples for specific technlogies like Google Gadgets, Chrome extensions, etc. , but there isn't one for Node.js. Also see http://code.google.com/p/google-api-adwords-js/source/browse/trunk/js/adwordsapi/src/config.js for details on how to configure the library to use a particular HttpWebTransport class.
Cheers,
Anash
I don't know much about node.js but if it's using standard JavaScript then you should be able to get somewhere with the new AdWords API JavaScript library: http://code.google.com/p/google-api-adwords-js/

Resources