oira666_tg 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ const { MessageInfoManager } = require('../source/classes/MessageInfoManager');
7
7
  // messageInfo.clean(); // delete data
8
8
 
9
9
 
10
- export default async (ctx, next) => {
10
+ module.exports = async (ctx, next) => {
11
11
  if (!ctx.from) {
12
12
  await next();
13
13
  return;
@@ -1,7 +1,7 @@
1
1
  const _ = require('lodash');
2
2
  const { TelegramSession } = require('../source/classes/TelegramSession');
3
3
 
4
- export default async (ctx, next) => {
4
+ module.exports = async (ctx, next) => {
5
5
  if (!ctx.from) {
6
6
  await next();
7
7
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oira666_tg",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "tg framework for oira666",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,4 +1,4 @@
1
- export default async (ctx) => {
1
+ module.exports = async (ctx) => {
2
2
  await ctx.telegram.sendMessage(
3
3
  ctx.chat.id,
4
4
  ctx.t`ID Твоего пользователя в телеграме: ${ctx.from.id}\nID этого чата в телеграме: ${ctx.chat.id}`,
@@ -1,4 +1,4 @@
1
- export default async (ctx) => {
1
+ module.exports = async (ctx) => {
2
2
  try {
3
3
  await ctx.telegram.sendMessage(
4
4
  ctx.chat.id,