0.5.9 • Published 8 months ago

evogram v0.5.9

Weekly downloads
-
License
WTFPL
Repository
github
Last release
8 months ago

logo

Introduction

Welcome to the Evogram Telegram Framework! This framework provides an easy and convenient way to build Telegram bots in Node.js. In this guide, we will walk you through the steps to download Node.js, create a Telegram bot, and install the Evogram package.

Documentation

See https://czvelox.github.io/evogram

Downloading Node.js

The first step is to download and install Node.js. You can download the latest version of Node.js from the official website at https://nodejs.org. Simply select the version you wish to download and follow the instructions to install it on your machine.

Creating a Telegram Bot

To create a Telegram bot, you will need to talk to BotFather, a bot provided by Telegram that helps you create and manage bots. To do this, simply open a chat with BotFather in Telegram and follow the steps outlined by the bot. Once you have created a bot, you will receive an API token that you will need to use in your code.

Installing Evogram

To install the Evogram package, you can use npm, the package manager for Node.js. Simply run the following command in your terminal:

npm install evogram

Writing Code

Once you have installed the Evogram package, you can start writing code to build your bot. Here is an example of a simple bot using Evogram:

const { Evogram } = require('evogram');
const client = new Evogram("YOUR_TOKEN");

client.updates.on("message", (message) => {
    message.send(message.text || "Sorry, I can only repeat the text.");
});

client.updates.polling.start();

In the code above, we use the Evogram constructor to create a new instance of the bot, passing in the API token. Then we define a message event handler to reply to any text message received with the same text. Finally, we launch the bot using the client.updates.polling.start() method.

Conclusion

The framework is constantly being developed and updated with new features, so stay tuned for more updates in the future. Whether you are just starting out or have extensive experience with Telegram bots, Evogram provides a simple and effective solution for building and deploying your bots.

0.5.8

8 months ago

0.5.7

9 months ago

0.5.9

8 months ago

0.5.4

9 months ago

0.5.6

9 months ago

0.5.5

9 months ago

0.5.3

11 months ago

0.5.2

11 months ago

0.5.1

11 months ago

0.5.0

12 months ago

0.3.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.1

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.0

1 year ago