-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:alexander-akhmetov/python-telegram
- Loading branch information
Showing
39 changed files
with
718 additions
and
669 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ MANIFEST | |
*.pyc | ||
.DS_Store | ||
.vscode | ||
telegram/_version.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.12" | ||
|
||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.10.0-bullseye | ||
FROM python:3.12.4-slim-bullseye | ||
|
||
RUN python3 -m pip install python-telegram | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,37 @@ | ||
docker-build: | ||
.PHONY: docker/build | ||
docker/build: | ||
docker build -f Dockerfile . -t akhmetov/python-telegram | ||
|
||
docker-send-message: | ||
.PHONY: docker/send-message | ||
docker/send-message: | ||
docker run -i -t \ | ||
-v /tmp/docker-python-telegram/:/tmp/ \ | ||
akhmetov/python-telegram \ | ||
python3 /app/examples/send_message.py $(API_ID) $(API_HASH) $(PHONE) $(CHAT_ID) $(TEXT) | ||
|
||
docker-echo-bot: | ||
.PHONY: docker/echo-bot | ||
docker/echo-bot: | ||
docker run -i -t \ | ||
-v /tmp/docker-python-telegram/:/tmp/ \ | ||
akhmetov/python-telegram \ | ||
python3 /app/examples/echo_bot.py $(API_ID) $(API_HASH) $(PHONE) | ||
|
||
docker-get-instant-view: | ||
.PHONY: docker/get-instant-view | ||
docker/get-instant-view: | ||
docker run -i -t \ | ||
-v /tmp/docker-python-telegram/:/tmp/ \ | ||
akhmetov/python-telegram \ | ||
python3 /app/examples/echo_bot.py $(API_ID) $(API_HASH) $(PHONE) | ||
|
||
|
||
release-pypi: | ||
test -n "$(VERSION)" | ||
python setup.py sdist | ||
twine upload dist/python-telegram-$(VERSION).tar.gz | ||
.PHONY: clean | ||
clean: | ||
rm -rf dist | ||
|
||
.PHONY: build-pypi | ||
build-pypi: clean | ||
python3 -m build | ||
|
||
.PHONY: release-pypi | ||
release-pypi:build-pypi | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
sphinx | ||
sphinx-autobuild | ||
autodoc | ||
sphinx-immaterial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.