alexander-akhmetov

alexander-akhmetov

Member Since 9 years ago

Experience Points
54
follower
Lessons Completed
31
follow
Lessons Completed
937
stars
Best Reply Awards
50
repos

672 contributions in the last year

Pinned
⚡ Create Siri Shortcuts with Python
⚡ Apple-1 emulator
⚡ Python client for the Telegram's tdlib
⚡ small operating system
⚡ LSM tree based key-value database
⚡ MOS 6502 CPU emulator
Activity
Jan
24
2 days ago
Activity icon
fork

alexander-akhmetov forked minad/consult

⚡ consult.el - Consulting completing-read
alexander-akhmetov GNU General Public License v3.0 Updated
fork time in 2 days ago
Jan
22
4 days ago
Activity icon
fork

alexander-akhmetov forked acomagu/fish-async-prompt

⚡ Make your prompt asynchronous to improve the reactivity.
alexander-akhmetov MIT License Updated
fork time in 4 days ago
Jan
21
5 days ago
Jan
17
1 week ago
started
started time in 1 week ago
Jan
11
2 weeks ago
Jan
10
2 weeks ago
started
started time in 2 weeks ago
Activity icon
issue

alexander-akhmetov issue alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

ImportError: cannot import name 'setup_logging' from 'utils'

I copied the code directly from github and got an error

ImportError: cannot import name 'setup_logging' from 'utils' (C:\Users\btcdw\PycharmProjects\电报自动聊天\venv\lib\site-packages\utils_init_.py)

https://github.com/alexander-akhmetov/python-telegram/blob/master/examples/send_message.py

Activity icon
issue

alexander-akhmetov issue comment alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Can't download file

Hello, I am trying to download file that received in messages, but can't to do it. file_id = 638 for example

    params = {"file_id": file_id, "priority": 30, "offset": 0, "limit": 0, "synchronous": "true"}
    result = self.tg.call_method("downloadFile", params)
    result.wait()
    print(result.update)

It returns None. What I am doing wrong?

alexander-akhmetov
alexander-akhmetov
push

alexander-akhmetov push alexander-akhmetov/apple1

alexander-akhmetov
alexander-akhmetov

Bump mos6502 from 0.1.0 to 0.2.0

Bumps mos6502 from 0.1.0 to 0.2.0.


updated-dependencies:

  • dependency-name: mos6502 dependency-type: direct:production ...

Signed-off-by: dependabot[bot] [email protected]

commit sha: 286558bd8cbdfdb7def89a055513457e39af9c35

push time in 2 weeks ago
pull request

alexander-akhmetov pull request alexander-akhmetov/apple1

alexander-akhmetov
alexander-akhmetov

Bump mos6502 from 0.1.0 to 0.2.0

Bumps mos6502 from 0.1.0 to 0.2.0.

Commits
  • b193e4a Rust 2021 edition
  • a2d7d9a Linter fix and update dependencies
  • 52e4f92 Bump clap from 2.33.2 to 2.33.3
  • d5fe299 Bump clap from 2.33.1 to 2.33.2
  • 3513bcb Merge pull request #5 from alexander-akhmetov/dependabot/cargo/log-0.4.11
  • f1f0cd8 Bump log from 0.4.10 to 0.4.11
  • 356a1a0 Github Actions
  • ea861f3 Merge pull request #4 from alexander-akhmetov/dependabot/cargo/clap-2.33.1
  • 43941e7 Bump clap from 2.33.0 to 2.33.1
  • a3605c2 Merge pull request #3 from alexander-akhmetov/dependabot/cargo/log-0.4.10
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
pull request

alexander-akhmetov merge to alexander-akhmetov/apple1

alexander-akhmetov
alexander-akhmetov

Bump mos6502 from 0.1.0 to 0.2.0

Bumps mos6502 from 0.1.0 to 0.2.0.

Commits
  • b193e4a Rust 2021 edition
  • a2d7d9a Linter fix and update dependencies
  • 52e4f92 Bump clap from 2.33.2 to 2.33.3
  • d5fe299 Bump clap from 2.33.1 to 2.33.2
  • 3513bcb Merge pull request #5 from alexander-akhmetov/dependabot/cargo/log-0.4.11
  • f1f0cd8 Bump log from 0.4.10 to 0.4.11
  • 356a1a0 Github Actions
  • ea861f3 Merge pull request #4 from alexander-akhmetov/dependabot/cargo/clap-2.33.1
  • 43941e7 Bump clap from 2.33.0 to 2.33.1
  • a3605c2 Merge pull request #3 from alexander-akhmetov/dependabot/cargo/log-0.4.10
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
Activity icon
issue

alexander-akhmetov issue comment alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Windows Support?

I'm curious why this library doesn't support Windows out-of-the-box. AFAIK TDLib is cross-platform, and it's certainly doable (I've seen it done by one person with at least enough success to compile, not sure if it's missing features though).

alexander-akhmetov
alexander-akhmetov

Hi! I don't have Windows to build and test new tdlib builds with every new release. But you can build it yourself (instruction) and specify the path to the dll file. You will also have to change the files_directory, because if it's not specified the library uses a hardcoded value:

td = Telegram(
    library_path='path',  # path to the dll file
    files_directory='another/path'  # directory for the tdlib's files (database, images, etc.)
)

I'm not sure what else needs to be fixed, maybe nothing.

You can also use the docker image or Windows Subsystem for Linux.

push

alexander-akhmetov push alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Bump mypy from 0.930 to 0.931

Bumps mypy from 0.930 to 0.931.


updated-dependencies:

  • dependency-name: mypy dependency-type: direct:production update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] [email protected]

alexander-akhmetov
alexander-akhmetov

Merge pull request #246 from alexander-akhmetov/dependabot/pip/mypy-0.931

Bump mypy from 0.930 to 0.931

commit sha: 1966255271d0c4dbc1fdb8142eb052b43cdc9897

push time in 2 weeks ago
pull request

alexander-akhmetov pull request alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Bump mypy from 0.930 to 0.931

Bumps mypy from 0.930 to 0.931.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
pull request

alexander-akhmetov merge to alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Bump mypy from 0.930 to 0.931

Bumps mypy from 0.930 to 0.931.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
Jan
5
3 weeks ago
Jan
2
3 weeks ago
push

alexander-akhmetov push alexander-akhmetov/apple1

alexander-akhmetov
alexander-akhmetov
alexander-akhmetov
alexander-akhmetov

Merge branch 'master' of github.com:alexander-akhmetov/apple1

commit sha: 91dfefb94d8deb1edde227e2e73c15c56c96460c

push time in 3 weeks ago
pull request

alexander-akhmetov pull request alexander-akhmetov/zt-tcp-relay

alexander-akhmetov
alexander-akhmetov

Bump env_logger from 0.8.3 to 0.9.0

Bumps env_logger from 0.8.3 to 0.9.0.

Release notes

Sourced from env_logger's releases.

v0.9.0

Breaking Changes:

  • Default message format now prints the target instead of the module

Improvements:

  • Added a method to print the module instead of the target

0.8.4

Improvements:

  • Allow writing logs to a custom output target (via Target::Pipe)

Bug fixes:

  • Actually allow overriding filter levels using env_logger::Builders methods, as documented
Commits
  • 04856ac bump version to 0.9.0
  • e4744ff Merge pull request #209 from gtsiam/main
  • c5fa7a2 refactor: fix clippy warnings
  • 34574df Update link to examples
  • 1888497 Clarified documentation about log filtering
  • 365ffaf Show target instead of module path by default
  • d2998a6 Add option to print log target
  • 13cafce Bump version to 0.8.4
  • 0900811 Ensure unique directive names when building filters
  • 1a8379a Allow writing logs to a custom output target (Target::Pipe)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)
push

alexander-akhmetov push alexander-akhmetov/zt-tcp-relay

alexander-akhmetov
alexander-akhmetov

Bump env_logger from 0.8.3 to 0.9.0

Bumps env_logger from 0.8.3 to 0.9.0.

Signed-off-by: dependabot-preview[bot] [email protected]

commit sha: 8ee83c4652f98353f30baad1ce638c9bda0772d0

push time in 3 weeks ago
push

alexander-akhmetov push alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Search for the system library first, and fallback to the embedded one if the system was not found

alexander-akhmetov
alexander-akhmetov

Merge pull request #245 from alexander-akhmetov/ctypes-find-library

Search for the system library first, and fallback to the embedded one if the system was not found

commit sha: 8efb8e1c3a2a9da12022948fb9fee1db1d07e21a

push time in 3 weeks ago
pull request

alexander-akhmetov pull request alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Search for the system library first, and fallback to the embedded one if the system was not found

pull request

alexander-akhmetov pull request alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Search for the system library first, and fallback to the embedded one if the system was not found

push

alexander-akhmetov push alexander-akhmetov/python-telegram

alexander-akhmetov
alexander-akhmetov

Search for the system library first, and fallback to the embedded one if the system was not found

commit sha: b0af0985910ebb8940cff1b92961387aad683287

push time in 3 weeks ago
Previous