telegram-bot-getids
telegram-bot-getids copied to clipboard
Bump telegraf from 4.8.6 to 4.12.2
Bumps telegraf from 4.8.6 to 4.12.2.
Release notes
Sourced from telegraf's releases.
v4.12.2
- Fix: session reference counter had defaulted to 0, therefore permanently being cached and never being cleaned up β this has been fixed.
v4.12.1
- Fix:
bot.command
did not match bot usernames if the registered username was not lowercased (#1809)v4.12.0
Normally the most exciting features of a new release would be support for the latest Bot API. But in this update, it's session! This has been in the works for many months, and we're happy to bring it to you this release!
Some of you may know that builtin session has been deprecated for quite a while. This was motivated by the fact that session is prone to race-conditions (#1372). This left the community in a grey area where they continued to use session despite the deprecation, since no clear alternative was provided. Added to this was the fact that there were no official database-backed sessions, and all unofficial async session middleware were affected by #1372.
This release finally addresses both of these long-running issues.
ππΌ No more race conditions
#1713 provides a reference-counted implementation resistant to race conditions. Session is now no longer deprecated, and can be used safely!
Note: You should read more about how to safely use session in the docs repo.
β’οΈ Official database adapters are here!
We're also happy to announce a revamped
@telegraf/session
βthis provides official store implementations for database-backed sessions via Redis, MongoDB, MySQL, MariaDB, PostgreSQL, and SQLite. Just install the drivers necessary for your database, and off you go! Since this package now only provides astore
implementation, it's usable with builtin session, and effectively makes all implementations have the same safety as the core package. Check it out!π Default session
Additionally, session now accepts a
defaultSession
parameter. You no longer need a hacky middleware to doctx.session ??= { count }
.// π€’ Old way bot.use(session()); bot.use((ctx, next) => { ctx.session ??= { count: 0 }; return next(); });
// π New way β bot.use(session({ defaultSession: () => ({ count: 0 }) }));
- Updated Typegram, added the following Markup.button helpers to request a user or chat:
Markup.button.userRequest
Markup.button.botRequest
... (truncated)
Commits
- See full diff in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
New dependency changes detected. Learn more about Socket for GitHub βοΈ
π No new dependency issues detected in pull request
Bot Commands
To ignore an alert, reply with a comment starting with @SocketSecurity ignore
followed by a space separated list of package-name@version
specifiers. e.g. @SocketSecurity ignore [email protected] bar@*
or ignore all packages with @SocketSecurity ignore-all
Pull request alert summary
Issue | Status |
---|---|
Install scripts | β 0 issues |
Native code | β 0 issues |
Bin script shell injection | β 0 issues |
Unresolved require | β 0 issues |
Invalid package.json | β 0 issues |
HTTP dependency | β 0 issues |
Git dependency | β 0 issues |
Potential typo squat | β 0 issues |
Known Malware | β 0 issues |
Telemetry | β 0 issues |
Protestware/Troll package | β 0 issues |
π Modified Dependency Overview:
β¬οΈ Updated Package | Version Diff | Capability Access | +/- Transitive Count |
Publisher |
---|---|---|---|---|
[email protected] | 4.8.6...4.12.2 | network, filesystem, environment | +4/-5 |
mkrhere |