Skip to content

Commit

Permalink
Merge branch 'main' into conversations-migration-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
LWJerri authored Feb 17, 2025
2 parents 5fcc6de + a1fffc1 commit dd8542c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 26 deletions.
32 changes: 9 additions & 23 deletions site/docs/.vitepress/components/ThankYou.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function pseudoRandom255(len: number): Promise<number> {
const signature = await window.crypto.subtle.sign(
"HMAC",
key,
enc.encode(today.toDateString()),
enc.encode(today.toUTCString()),
);
const arr = new Uint8Array(signature);
const res = arr.reduce((x, y) => x ^ y);
Expand Down Expand Up @@ -74,7 +74,7 @@ async function load() {
try {
const res = await fetch("https://raw.githubusercontent.com/grammyjs/grammY/main/.all-contributorsrc");
if (!res.ok) { throw res }
const { contributors } = await res.json();
const selectToday = await pseudoRandom255(contributors.length);
const contributor_ = contributors[selectToday];
Expand All @@ -101,7 +101,7 @@ async function load() {
contributor.name = contributor_.name ?? contributor_.login;
contributor.photo = contributor_.avatar_url + "&size=64";
}
try {
const res = await fetch(`https://identicons.github.com/${contributor.login}.png`);
if (!res.ok) { throw res }
Expand All @@ -128,29 +128,12 @@ load();
<template>
<div v-if="contributor.show" id="thankyou">
<div id="avatar-container">
<img
id="identicon"
v-bind:src="contributor.identicon"
alt="contributor's identicon"
width="32"
height="32"
/>
<img
id="github-avatar"
v-bind:alt="contributor.login"
v-bind:src="contributor.photo"
width="32"
height="32"
/>
<img id="identicon" v-bind:src="contributor.identicon" alt="contributor's identicon" width="32" height="32" />
<img id="github-avatar" v-bind:alt="contributor.login" v-bind:src="contributor.photo" width="32" height="32" />
</div>
<p>
{{ props.s[0] }}
<a
v-bind:href="contributor.href"
target="_blank"
rel="noreferrer noopener"
>{{ contributor.name }}</a
>{{
<a v-bind:href="contributor.href" target="_blank" rel="noreferrer noopener">{{ contributor.name }}</a>{{
contributor.name.toLowerCase() == "knorpelsenf"
? props.s[3] ?? props.s[2]
: props.s[2]
Expand All @@ -169,16 +152,19 @@ load();
align-items: center;
justify-content: center;
gap: 0.44rem;
img {
height: 2rem;
width: 2rem;
max-width: none;
border-radius: 9999px;
}
p {
margin: 0;
font-size: 0.85rem;
font-weight: bold;
a {
font-weight: bold;
}
Expand Down
4 changes: 2 additions & 2 deletions site/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ Works! :tada:

<div style="font-size: 0.75rem; display: flex; justify-content: center;">

© 2021-2025 &middot; grammY supports Telegram Bot API 8.2 which was [released](https://core.telegram.org/bots/api#january-1-2025) on January 1, 2025.
(Last highlight: Chat and User Verification)
© 2021-2025 &middot; grammY supports Telegram Bot API 8.3 which was [released](https://core.telegram.org/bots/api#february-12-2025) on February 12, 2025.
(Last highlight: Gift and Video Message Improvements)

</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion site/docs/ru/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ deno -IN bot.ts
export DEBUG="grammy*"
```

в терминале перед выполнением `node bot.js`. Это облегчает отладку вашего бота
в терминале перед выполнением. Это облегчает отладку вашего бота

Теперь вам нужно запустить бота, используя

Expand Down

0 comments on commit dd8542c

Please sign in to comment.