Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram doesn't work #84

Open
asr-lord opened this issue Nov 11, 2024 · 0 comments
Open

Telegram doesn't work #84

asr-lord opened this issue Nov 11, 2024 · 0 comments

Comments

@asr-lord
Copy link

I'm using the following code as indicate in Readme:

# !pip install knockknock
from knockknock import telegram_sender

CHAT_ID: int = <int value>
token = <str value>
@telegram_sender(token=token, chat_id=CHAT_ID)
def train_your_nicest_model(your_nicest_parameters):
    import time
    time.sleep(10000)
    return {'loss': 0.9} # Optional return value

with the same chat_id and token I'm using successfully tqdm:

from tqdm.contrib.telegram import tqdm, trange
import time

token = <str value>
chat_id = <str value>

for i in trange(10, token=token, chat_id=chat_id, desc="Processing..."):
    time.sleep(1)

imagen

What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant