Обучающий пример бота Telegram на Node.js с использованием Telegraf. Структура, сцены типа Base, Wizard, работа с api сторонних сервисов

Overview

NODE TG BOT TUTORIAL | WEATHER

Обучающий пример Telegram bot по определению погоды с меcтоположения человека.

Сервис бесплатного API погоды

База данных MONGO

Node.js(версия 16.13.0)

Установка

При клонировании репозитория следует подкачать зависимости проекта

npm i

Cоздать файл .env в папке config и вставить туда нужные токены. (пример .env.example)

Использование

Запуск:

npm run dev

Структура проекта

  • [index.js] - главный файл для запуска всего проекта.
  • [bot.js] - файл для инициализация бота.
  • [config] - все файлы конфигурации и переменных окружений(env).
  • [controller] - контроллеры, команды и сцены.
  • [services] - сервисы, запросы к api и бизнес-логика.
  • [utils] - утилиты, кнопки, инструменты.
  • [public] - статичные файлы(картинки, стили, изображения).
You might also like...

An implementation of gRPC health checks, for node.js-based apps that uses @grpc/grpc-js as a base.

gRPC Health Check An implementation of gRPC health checks, for node.js-based apps that uses @grpc/grpc-js as a base. Installation yarn add git+https:/

Aug 31, 2022

The code base for the tutorial on how to use the TypingDNA Verify API

TypingDNA-Verify-API-Tutorial The code base for the tutorial on how to use the TypingDNA Verify API Resources TypingDNA Website TypingDNA Verify Docs

Oct 6, 2022

A base project for Express with Typescript to create an API. Includes automatic input validation and Swagger UI generation.

A base project for Express with Typescript to create an API. Includes automatic input validation and Swagger UI generation.

(Typescript) Express API with input Validation and Swagger UI Thats a mouthful isn't it. Typescript: The language used, a superset of Javascript with

Oct 26, 2022

Telegram-API Library Written in TypeScript

TeleLib A Telegram Wrapper. NodeJS install NodeJS version Via npm or yarn yarn add @telelib/telelib # or npm i --save @telelib/telelib create a .js or

May 28, 2022

Improved Deno port of GramJS — a MTProto API Telegram client library.

Warning Considered as unstable. But, most of the commonly used features are working as expected. Grm Grm is an improved Deno port of GramJS, written i

Dec 31, 2022

This is a bot for Telegram that can be used to receive webhook notifications from Gitlab. It is built with the Next.js API.

This is a bot for Telegram that can be used to receive webhook notifications from Gitlab. It is built with the Next.js API.

Telegram Bot for Gitlab Webhook 🦉 Note This project is still in development. Just relax 🙂 This is a bot for Telegram that can be used to receive web

Oct 22, 2022

Eleventy base project

Project base for Eleventy Sites Includes static page template, blog post template, post feed, pagination, tags and RSS. Also includes gulp setup for S

Dec 21, 2022

Hiroshi. A wabot-aq base MD Baileys

Hiroshi. A wabot-aq base MD Baileys

Hiroshi Haruno md version. Baileys-MD (multi-device) is still a beta version. there'll so many bug on it. Termux apt install ffmpeg apt install imagem

Jul 23, 2022

Ox "base" template server

OX Base Template Server This repo is an updated version of Judd's ox_base_template_server, as he discontinued his repo I will still be contributing to

Feb 6, 2022
Owner
Владимир Бондаренко
Владимир Бондаренко
solana-base-app is a base level, including most of the common features and wallet connectivity, try using `npx solana-base-app react my-app`

solana-base-app solana-base-app is for Solana beginners to get them up and running fast. To start run : run npx solana-base-app react my-app change th

UjjwalGupta49 33 Dec 27, 2022
Пример торгового робота для Tinkoff Invest API (Node.js)

tinkoff-robot Пример торгового робота на Node.js с использованием Tinkoff Invest Api v2. использует комбинацию нескольких сигналов работает одновремен

Vitaliy Potapov 11 Jan 2, 2023
Демонстрационный пример к мастер-классу (Infostart Event 2022)

Backend For Frontend Репозиторий с примерами кода для мастер-класса «Backend For Frontend», конференция «Infostart Event 2022». Как запустить Загрузит

Igor Antonov 3 Oct 8, 2022
A demo app showingcasing laravel-livewire-wizard

A demo of spatie/laravel-livewire-wizard This repo contains a Laravel app to showcase the spatie/laravel-livewizard package. Usage Clone the repo Copy

Spatie 52 Dec 29, 2022
Multi-step wizard helpers for Alpine.js

Alpine Wizard This package provides an Alpine directive (x-wizard) and a magic helper ($wizard) that allow you to quickly build multi-step wizards usi

Galahad 74 Dec 23, 2022
Deta Base UI - A place with more functionality for managing your Deta Base(s).

Deta Base UI - A place with more functionality for managing your Deta Base(s). ✨ Features: Total rows count Quick multi select (click and shift) Searc

Harman Sandhu 13 Dec 29, 2022
Base-mock-api - Repo to storage my fake api's to use in my 2022 projects.

Base Mock API's Project made 100% with JavaScript, with the objective of creating endpoints to use in projects. Prerequisites Before you begin, ensure

Arthur Cabral 0 Nov 20, 2022
JavaScript API based capstone project using TVmaze API for displaying and interacting with items from the data base.

Yuriy Chamkoriyski & Bonke Gcobo Javascript capstone project API-based webapp from Module 2 at Microverse Wireframe requirements The Home Page low fid

Yuriy Chamkoriyski 5 May 30, 2022
A base API template for a REST API using express.

express-api-template A base API template for a REST API using express. Philosophy Setting up a new project can be a long and tedious process, especial

T3NED 6 May 29, 2022
Projeto de Final de Módulo da Resilia, curso de Web Dev Full Stack, utilizando como base Node.js e Javascript.

?? API Transportadora Projeto de encerramento do módulo 4 da Resilia Educação. O objetivo é desenvolver uma API Rest de uma transportadora. ?? Pré-req

null 5 Mar 26, 2022