Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
9f29616
add copyMessage method
LetItCode Jan 8, 2021
52d31f8
duplicate assignment
LetItCode Jan 8, 2021
8146103
add context copyMessage typings
LetItCode Jan 8, 2021
d7dd5e5
Merge branch 'master' of https://github.com/LetItCode/telegraf
LetItCode Jan 8, 2021
1efd566
Bot API 5.0 - Webhooks
LetItCode Jan 14, 2021
909f337
Bot API 5.0 - unbanChatMember
LetItCode Jan 14, 2021
5dd9bda
add sendDocument params
LetItCode Jan 14, 2021
e81dadb
add param to unpinChatMessage
LetItCode Jan 14, 2021
281bd15
Bot API 5.0 - unpinAllChatMessages
LetItCode Jan 14, 2021
b6cacbb
correct params in sendMediaGroup
LetItCode Jan 14, 2021
1389203
correct params in sendLocation
LetItCode Jan 14, 2021
beab76e
Use typegram instead of telegram-typings
Loskir Jan 14, 2021
f46b2d9
Fix: add reexport
Loskir Jan 14, 2021
611b91d
Fix JSDoc for promoteChatMember
Loskir Jan 14, 2021
0810733
missing space
LetItCode Jan 14, 2021
498308e
correct params in editMessageLiveLocation
LetItCode Jan 14, 2021
b74fc7a
Merge branch 'master' of https://github.com/LetItCode/telegraf
LetItCode Jan 14, 2021
c88c326
Remove IncomingMessage
Loskir Jan 14, 2021
74b511b
Merge branch 'typegram'
Loskir Jan 14, 2021
3b320a9
Add emoji param to ExtraDice
Loskir Jan 14, 2021
b32ea34
its ok ...undefined
LetItCode Jan 14, 2021
10ce5c9
Merge branch 'master' of https://github.com/LetItCode/telegraf
LetItCode Jan 14, 2021
b7f2852
correct params in promoteChatMember
LetItCode Jan 14, 2021
6fd65b7
Change max poll question length to 300
Loskir Jan 14, 2021
fc86259
Fix test for sendVideoNote
Loskir Jan 14, 2021
22d4e5d
Fix test for editMessageLiveLocation
Loskir Jan 14, 2021
b1286d9
add copyMessage method
LetItCode Jan 14, 2021
ef7b1ef
convert sendCopy to proxy method 😥 bb replicators
LetItCode Jan 14, 2021
d9e189e
Revert "convert sendCopy to proxy method 😥 bb replicators"
LetItCode Jan 14, 2021
86196a1
sendCopy via proxy method
LetItCode Jan 14, 2021
c2c3174
Update typings for Extra
Loskir Jan 14, 2021
318d88f
Update typings for quiz
Loskir Jan 14, 2021
4136de4
Fix typings for poll
Loskir Jan 14, 2021
35e37d2
native copy message & online require
LetItCode Jan 14, 2021
9415f8d
bump license date
deletedev Jan 14, 2021
8b64b6a
Fix typings for editMessageCaption
Loskir Jan 15, 2021
d00ee1e
Update editMessageLiveLocation
Loskir Jan 15, 2021
ce10b73
Fix typings for editMessageCaption
Loskir Jan 15, 2021
213d04a
Fix JSDoc for editMessageMedia
Loskir Jan 15, 2021
1623329
Fix typings for editMessageReplyMarkup
Loskir Jan 15, 2021
9b9c888
Fix JSDoc for editMessageLiveLocation
Loskir Jan 15, 2021
94087f2
Add fallback support for caption and caption_entities passed as extra…
Loskir Jan 15, 2021
2adadc5
Add support for caption and caption_entities to editMessageCaption
Loskir Jan 15, 2021
e53cbe4
Add caption_entities to InputMedia typings
Loskir Jan 15, 2021
9726f1f
Add InputMediaTypes description
Loskir Jan 15, 2021
4807d00
Fix test for editMessageLiveLocation
Loskir Jan 15, 2021
3bca842
Fix typings for editMessageMedia
Loskir Jan 15, 2021
796447d
Update Extra type
Loskir Jan 15, 2021
0957a0b
Add deprecation warning TODOs
Loskir Jan 15, 2021
eff3ebc
Update typings for stopMessageLiveLocation
Loskir Jan 15, 2021
f96d2c8
Fix JSDoc
Loskir Jan 15, 2021
ea0799c
Fix typos
Loskir Jan 15, 2021
d3b770c
typo caption type
LetItCode Jan 15, 2021
3bd2fb7
correct TelegrafOptions
LetItCode Jan 16, 2021
15d2020
typo contextType param
LetItCode Jan 16, 2021
0d68238
add MarkdownV2
LetItCode Jan 17, 2021
c81f8f3
add Custom context desc
LetItCode Jan 17, 2021
7f49b29
remove warnings & repair level headings
LetItCode Jan 17, 2021
735319f
add MarkdownV2
LetItCode Jan 17, 2021
44d38d1
missing pollRequestButton method
LetItCode Jan 17, 2021
67286fe
improve button extends
LetItCode Jan 17, 2021
2b5daea
pretty TOC navigation
LetItCode Jan 17, 2021
435ef65
correct Telegraf sublevels
LetItCode Jan 17, 2021
80fcc21
init
LetItCode Jan 18, 2021
443ca1c
less padding
LetItCode Jan 18, 2021
746bff7
PWA test
LetItCode Jan 18, 2021
6d52b63
another one css
LetItCode Jan 18, 2021
0d62131
content width again & fix side-bar button
LetItCode Jan 18, 2021
751e56b
change domen to telegrafjs.org
LetItCode Jan 18, 2021
68852fa
change domen to v3.telegrafjs.org
LetItCode Jan 18, 2021
3faea58
fix angry red in code like vitalya
LetItCode Jan 18, 2021
663c234
old structure
LetItCode Jan 18, 2021
4802453
repair urls
LetItCode Jan 18, 2021
195d977
add router doc
LetItCode Jan 18, 2021
0f500be
ever best example
LetItCode Jan 18, 2021
2d771fe
ever best example
LetItCode Jan 23, 2021
9521a44
Revert "ever best example"
LetItCode Jan 23, 2021
f5c1c14
change media path
LetItCode Jan 23, 2021
b72a1bc
support v5.0
LetItCode Jan 23, 2021
4d3b816
typos
LetItCode Jan 23, 2021
5f9a1d4
change docs framework to docsify
LetItCode Jan 23, 2021
c9877a4
support v5.0
LetItCode Jan 23, 2021
146d71d
Add async await
oswebex Feb 10, 2021
2a9fb9f
Fix examples
oswebex Feb 10, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016-2019 Vitaly Domnikov
Copyright (c) 2016-2021 Vitaly Domnikov

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
29 changes: 22 additions & 7 deletions context.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,24 +272,24 @@ class TelegrafContext {
)
}

editMessageLiveLocation (latitude, longitude, markup) {
editMessageLiveLocation (latitude, longitude, extra) {
this.assert(this.callbackQuery || this.inlineMessageId, 'editMessageLiveLocation')
return this.inlineMessageId
? this.telegram.editMessageLiveLocation(
latitude,
longitude,
undefined,
undefined,
this.inlineMessageId,
markup
)
: this.telegram.editMessageLiveLocation(
latitude,
longitude,
extra
)
: this.telegram.editMessageLiveLocation(
this.chat.id,
this.callbackQuery.message.message_id,
undefined,
markup
latitude,
longitude,
extra
)
}

Expand Down Expand Up @@ -380,6 +380,11 @@ class TelegrafContext {
return this.telegram.unpinChatMessage(this.chat.id, ...args)
}

unpinAllChatMessages () {
this.assert(this.chat, 'unpinAllChatMessages')
return this.telegram.unpinAllChatMessages(this.chat.id)
}

leaveChat (...args) {
this.assert(this.chat, 'leaveChat')
return this.telegram.leaveChat(this.chat.id, ...args)
Expand Down Expand Up @@ -590,6 +595,16 @@ class TelegrafContext {
this.assert(message, 'forwardMessage')
return this.telegram.forwardMessage(chatId, this.chat.id, message.message_id, extra)
}

copyMessage (chatId, extra) {
const message = this.message ||
this.editedMessage ||
this.channelPost ||
this.editedChannelPost ||
(this.callbackQuery && this.callbackQuery.message)
this.assert(message, 'copyMessage')
return this.telegram.copyMessage(chatId, message.chat.id, message.message_id, extra)
}
}

module.exports = TelegrafContext
2 changes: 1 addition & 1 deletion docs/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
telegraf.js.org
v3.telegrafjs.org
Loading