forked from telegraf/telegraf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
391 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [dotcypress] | ||
open_collective: telegraf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const Telegraf = require('telegraf') | ||
const Extra = require('telegraf/extra') | ||
const Markup = require('telegraf/markup') | ||
|
||
const keyboard = Markup.inlineKeyboard([ | ||
Markup.loginButton('Login', 'https://domain.tld/hash', { | ||
bot_username: 'my_bot', | ||
request_write_access: 'true' | ||
}), | ||
Markup.urlButton('❤️', 'https://telegraf.js.org'), | ||
Markup.callbackButton('Delete', 'delete') | ||
]) | ||
|
||
const bot = new Telegraf(process.env.BOT_TOKEN) | ||
bot.start((ctx) => ctx.reply('Hello', Extra.markup(keyboard))) | ||
bot.action('delete', ({ deleteMessage }) => deleteMessage()) | ||
bot.launch() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "telegraf", | ||
"version": "3.29.0", | ||
"version": "3.30.0", | ||
"description": "📡 Modern Telegram Bot Framework", | ||
"license": "MIT", | ||
"author": "Vitaly Domnikov <[email protected]>", | ||
|
@@ -30,7 +30,7 @@ | |
}, | ||
"types": "./typings/index.d.ts", | ||
"dependencies": { | ||
"@types/node": "^11.12.1", | ||
"@types/node": "^12.0.4", | ||
"debug": "^4.0.1", | ||
"node-fetch": "^2.2.0", | ||
"sandwich-stream": "^2.0.1", | ||
|
@@ -42,10 +42,10 @@ | |
"eslint-config-standard": "^12.0.0", | ||
"eslint-plugin-ava": "^6.0.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-node": "^8.0.0", | ||
"eslint-plugin-node": "^9.1.0", | ||
"eslint-plugin-promise": "^4.0.0", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"husky": "^1.1.1", | ||
"husky": "^2.3.0", | ||
"typescript": "^3.0.1" | ||
}, | ||
"keywords": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.