Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS CompTIA Security+ Microsoft AZ-900
Graphic Design Photoshop Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Personal Development Mindfulness Personal Transformation Life Purpose Meditation CBT Emotional Intelligence
Web Development JavaScript React CSS Angular PHP Node.Js WordPress Vue JS
Google Flutter Android Development iOS Development React Native Swift Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Retargeting
Microsoft Power BI SQL Tableau Business Analysis Data Modeling Business Intelligence MySQL Data Analysis Blockchain
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Business Plan Startup Online Business Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
30-Day Money-Back Guarantee
Development Web Development Chatbot

Build Telegram Bots with JavaScript: The Complete Guide

Complete, Easy and Fast to learn. Build Telegram Chat Bots with Node.js using the Modern Telegraf Framework
Rating: 4.4 out of 54.4 (123 ratings)
5,356 students
Created by Mark Tan
Last updated 2/2021
English
English [Auto]
30-Day Money-Back Guarantee

What you'll learn

  • You will learn Telegraf Framework and Telegram Bot API
  • Basic Bot Functions such as commands, middlewares, context shortcuts, and working with files
  • Learn to implement advanced Telegram Bot API features such as custom keyboards, inline query, switch inline query
  • Learn to create AWS Lambda Function with Layers
  • Learn to use AWS API Gateway to create endpoints
  • Deploy Telegram Bots with Serverless Architecture on AWS
  • Learn to call External APIs and return the processed information to users with bots
  • Learn various APIs such as Cryptocompare, Wiki, Pixabay, and Cat-as-a-service
  • Learn to get data from Google Sheet using JSON
  • Learn Best Practices when coding Telegram Bots such as making the code modular
  • Learn to use RSS and Zapier to create an automatic Channel Posting Bot
  • Learn about Polling and Webhooks

Course content

12 sections • 143 lectures • 5h 28m total length

  • Preview02:37
  • Installing NodeJS and Visual Studio Code
    01:55
  • Setting Up Workspace
    01:10
  • Set Up Nodejs Project
    03:04
  • Installing Packages
    02:41

  • Create Bot and Bot's Token
    02:32
  • About Telegram API
    02:37
  • [Update] Documentation for Telegraf v3.x
    00:05

  • Basic Functions Introduction
    01:54
  • Constructor
    01:24
  • Important Commands
    05:03
  • Telegraf Context
    05:32
  • Bot Command Method
    02:35
  • Bot Hears Method
    02:57
  • Bot On Method
    02:03
  • Other Methods
    01:30
  • Bot Use Method
    00:45
  • About Middleware
    02:56
  • Next Function
    00:59
  • State
    02:23
  • Context Shortcuts
    02:15
  • Extra Parameters
    01:35

  • Preview00:57
  • Echo Bot Set-Up
    01:50
  • Start and Help Commands
    02:10
  • Echo Functionality
    04:19
  • Logging Functionality
    02:47
  • Logging Functionality 2
    04:14
  • Log Information to Group Chat
    02:59
  • Echo Bot Summary
    02:20

  • Preview00:38
  • Media Bot Set-Up
    01:22
  • Download Resource
    00:02
  • Working With Files
    05:02
  • Send Methods
    01:00
  • New York Command (Send Photo)
    00:51
  • Reply To Message ID
    02:10
  • Preview02:23
  • Dubai Command (Send Gif/Animation)
    01:25
  • Cities Command (Send Media Group)
    04:23
  • List Command (Send Document)
    03:00
  • Singapore Command (Send Location)
    00:56
  • Get Download Link (Document)
    05:08
  • Get Download Link (Photo)
    01:43
  • Help Message
    01:40
  • Media Bot Final Code
    00:02

  • Preview00:58
  • Simple API Bot Set-Up
    01:50
  • Brief Introduction to HTTP
    01:52
  • Fortune Cookie Command (Yerkee API)
    03:36
  • Cat Command (Random Cat API)
    05:33
  • Cat Command (Cat As A Service API)
    02:22
  • Download dogbreeds.json file
    00:02
  • Dog Breeds List Command
    03:19
  • Dog Command (Exact Result)
    04:57
  • Dog Command (Suggestions Filter)
    03:34
  • Help Message
    01:44
  • Markdown Style
    02:26
  • Simple API Bot Summary
    03:20

  • Preview00:49
  • Facts Bot Set-Up
    01:29
  • Facts List Data
    00:23
  • Google Sheet Set-Up
    02:14
  • Accessing Google Sheet
    00:04
  • Google Sheet JSON Link
    02:56
  • Get Data Command
    04:58
  • Fact Command
    05:19
  • Update Command
    02:10
  • Facts Bot Summary
    01:57

  • Preview01:13
  • Crypto Bot Set-Up
    01:34
  • [Update] Use Telegraf v3.38.0
    00:23
  • Inline Keyboard Markup
    05:12
  • Handle Callback Query
    02:30
  • Interactive Menu
    04:59
  • Cryptocompare API Key
    00:57
  • Start Message With Inline Keyboard
    03:35
  • Price Message With Inline Keyboard
    03:07
  • Back Button (Callback Query Handler)
    01:49
  • Price Buttons (Callback Query Handlers)
    10:33
  • Reply Keyboard Markup
    04:01
  • Reply Keyboard Handlers
    01:14
  • Remove Reply Keyboard
    04:25
  • Crypto Bot Final Code
    00:02

  • Preview00:57
  • Channel and Bot Set-Up
    01:04
  • Understanding RSS
    02:43
  • Get RSS from Instagram
    01:04
  • Zapier - Create Trigger
    01:29
  • Zapier - Create Action
    01:26
  • Telegram Bot API
    02:21
  • Zapier - Writing Fetch API
    03:21
  • Get Channel Chat ID
    04:19
  • Zapier - Setting InputData & Text Message
    02:07
  • Remove Splash Text
    01:38
  • Format Link (HTML Style)
    01:51
  • Inline Keyboard Button
    01:55
  • Switch On Zap!
    00:41
  • Facebook - Create another Zap and RSS
    03:45

  • Preview01:39
  • Search Bot Set-Up and Enable Inline Mode
    02:15
  • [Update] Use Telegraf v3.38.0
    00:23
  • Inline Mode
    03:48
  • Pixabay API
    01:33
  • Template for Pixabay API
    00:01
  • Handle Inline Query - Get data (Pixabay)
    04:34
  • Handle Inline Query - Answer Query (Pixabay)
    05:45
  • Caption & Markdown (Inline Keyboard)
    03:17
  • Wikipedia API
    02:18
  • Template for Wiki API
    00:01
  • Handle Inline Query - Get Data (Wiki)
    03:20
  • Handle Inline Query - Answer Query (Wiki)
    03:48
  • Switch Inline Query (Inline Keyboard)
    01:51
  • Share Button
    03:18
  • Enable Both Handlers
    04:29
  • Switch Inline Query Current Chat (Inline Keyboard)
    01:16
  • Start and Help Commands
    04:21
  • Start and Help Inline Query
    04:23
  • Set Placeholder with Botfather
    01:00
  • Search Bot Final Code
    00:08

Requirements

  • Telegram Account
  • Basic JavaScript

Description

Update: BEFORE YOU BUY

This course has NOT been updated for the new Telegraf v4.x

The course content currently supports only Telegraf v3.x

==========================

Telegram is a cloud-based instant messaging app that provides API to developers to create bots that interact with users. This course aims to provide you with complete set of knowledge on how to build amazing Telegram Bots.

In this course, you will be using JavaScript and NodeJS to create Telegram Bots using an EASY-TO-LEARN Modern Framework called Telegraf.

First you will be learning the basic bot functions where you will understand the fundamental building blocks of the framework.

Next we will learn how to build 7 different bots, each focusing on a specific area that will allow you to familiarize yourself with the framework and Telegram Bot API.

The 7 Bots that you will build:

  • Echo Bot - Echos what you type, provides users with a help message, and has logging feature to log information into another chat.

  • Media Bot - Work with files like sending photos, Gifs, and documents from your computer, URL or File ID.

  • Simple API Bot - Invoke external APIs to send users a random fortune cookie, a random image of a cat, an image with a text message that you typed, get an image of a specific dog breed.

  • Facts Bot - Retrieve data from a Google Sheet and output it to the bot without using Google API.

  • Crypto Bot - Retrieves Cryptocurrency information and you will learn how to create interactive menus in your bot using custom keyboards.

  • Channel Bot - Uses RSS and Zapier to automatically send Instagram or Facebook posts into your channel, and this also works for any website that supports RSS.

  • Search Bot - Supports inline query so that anyone in any chat can send an inline query to the bot to search for images or Wikipedia pages.

Finally we will learn how to deploy our bot using the Serverless Architecture with AWS Lambda and AWS API Gateway. The Serverless Architecture will allow your bot to scale automatically and you do not have to worry about it crashing when there are too many users. You also do not have to worry about managing your own server and it is also free and extremely cheap to host with AWS Lambda.

All the bot scripts and codes will be available for you to download and use to maximize your learning and gain the most from the course.

At the end of the course, you will know how to do simple logging into a group chat, send different types of files, use external API, read Google Sheets, create custom keyboards with interactive menus, handle inline queries, and automatically post content from websites like Instagram and Facebook into your channel and many more.

This course also gives you a good stepping stone for you to explore deeper into building more complex bots.

If you would like to see in detail what each bot does, you can check out the sections below.


Who this course is for:

  • Beginners who are curious to create Telegram bots
  • Anyone who want to create Telegram Bots with complex functions
  • Anyone who wants to understand and learn Telegram Bot API
  • Students who want to expand their portfolio with Telegram bots

Instructor

Mark Tan
Software Developer
Mark Tan
  • 4.4 Instructor Rating
  • 123 Reviews
  • 5,356 Students
  • 1 Course

Currently a 3rd year student at Singapore Management University, I am pursuing the Bachelor of Science degree in Information Systems, majoring in Software Development. I have been passionately building Telegram Bots in NodeJS for the past year and love the thrill of programming and making cool stuff. I am curious at heart and strive to learn something new everyday.

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Impressum Kontakt
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.