Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
156 commits
Select commit Hold shift + click to select a range
05c6738
use latest teloxide
will-lynas Oct 27, 2024
19fb1c1
Add missing fields for chat
will-lynas Oct 27, 2024
00f774c
Fix typo
will-lynas Oct 27, 2024
394d575
Update MessageCommon fields
will-lynas Oct 27, 2024
3361e84
Add sender_business_bot field
will-lynas Oct 27, 2024
712186e
Add can_connect_to_business
will-lynas Oct 27, 2024
406259a
formatter
will-lynas Nov 4, 2024
4e97a17
add route for SetMyCommands
will-lynas Nov 4, 2024
63674c0
formatter
will-lynas Nov 4, 2024
fa603a4
add set_my_commands handler
will-lynas Nov 4, 2024
c42495c
Fixed stack overflow and updated deps
LasterAlex Nov 5, 2024
b2aa026
Merge pull request #16 from will-lynas/latest-teloxide
LasterAlex Nov 6, 2024
e8d02f9
run cargo fmt
will-lynas Nov 6, 2024
3a674db
Merge pull request #17 from will-lynas/cargo-fmt
LasterAlex Nov 6, 2024
62ff207
split responses into a module
will-lynas Nov 6, 2024
a969ad1
make server struct
will-lynas Nov 6, 2024
37364e4
add addr fn
will-lynas Nov 6, 2024
a44049f
store server in mock bot
will-lynas Nov 6, 2024
4c2b85b
return Result from addr
will-lynas Nov 6, 2024
cf67991
rename to Server::new
will-lynas Nov 6, 2024
10eeb1a
remove check for running server
will-lynas Nov 7, 2024
3767a4d
use cancel token
will-lynas Nov 7, 2024
29371dd
delete a stop_server
will-lynas Nov 7, 2024
c263273
delete another stop_server block
will-lynas Nov 7, 2024
ccdb2d9
make the ctrl c handler use the cancel token
will-lynas Nov 7, 2024
da340a0
remove stop_server
will-lynas Nov 7, 2024
900fb0c
remove old stop endpoint
will-lynas Nov 7, 2024
6150800
remove some unused imports
will-lynas Nov 7, 2024
5296419
Merge branch 'no-stop-server' into random-port
will-lynas Nov 7, 2024
0bf22d9
fix a couple of clippy warnings
will-lynas Nov 7, 2024
6a450e1
remove a clone
will-lynas Nov 7, 2024
a8f3e10
use an if let
will-lynas Nov 7, 2024
653def6
remove a question mark
will-lynas Nov 7, 2024
ffc7ddd
remove a borrow
will-lynas Nov 7, 2024
9ac9ed4
remove close_bot
will-lynas Nov 7, 2024
b4eea58
simplify bot lock implementation
will-lynas Nov 7, 2024
7453938
pass in bot token instead of using env
will-lynas Nov 7, 2024
9eb2970
remove the mutex around port
will-lynas Nov 7, 2024
709edc3
! remove mutex from responses
will-lynas Nov 7, 2024
8ed8477
remove a borrow
will-lynas Nov 7, 2024
87882eb
just use a constant for stack size
will-lynas Nov 7, 2024
127613f
remove mutex from updates
will-lynas Nov 7, 2024
e6f3c30
allow dead code in server struct for the moment
will-lynas Nov 7, 2024
27b9ac0
change how current update id works
will-lynas Nov 7, 2024
b0f94ca
put lock comment back in right place
will-lynas Nov 7, 2024
2b3324c
set the bot url within the dispatch function
will-lynas Nov 7, 2024
5b8085d
use a new port each time
will-lynas Nov 7, 2024
598a029
create the server in the dispatch function
will-lynas Nov 7, 2024
62fa750
turn the addr function into a port function
will-lynas Nov 7, 2024
f6ecf4d
turn new into start
will-lynas Nov 7, 2024
1158ca1
expose the port as a field
will-lynas Nov 7, 2024
9b46173
remove the mutex around me
will-lynas Nov 7, 2024
5216266
remove unused import
will-lynas Nov 7, 2024
ec63e9d
actually use the server struct
will-lynas Nov 7, 2024
7a56e2a
factor out wait for server
will-lynas Nov 7, 2024
554dd98
remove dead code disable
will-lynas Nov 7, 2024
648c67c
warn on unwrap used on Server
will-lynas Nov 7, 2024
e946998
put back stack size
will-lynas Nov 7, 2024
b7ebe8e
update_lock -> first_update
will-lynas Nov 7, 2024
44e2e02
newline between pub and private fields
will-lynas Nov 7, 2024
fbc2690
remove the mutex from deps
will-lynas Nov 7, 2024
55282ea
move run server function to Server
will-lynas Nov 7, 2024
43f099e
remove commented out logger init
will-lynas Nov 7, 2024
39ee0af
Run prettier over ci.yml
will-lynas Nov 7, 2024
819e606
Run CI on PRs to any branch
will-lynas Nov 7, 2024
f4dc9f3
Add cargo fmt check
will-lynas Nov 7, 2024
78dd4d7
Add clippy check
will-lynas Nov 7, 2024
75b861d
Add clippy allows in teloxide_tests
will-lynas Nov 7, 2024
3b08485
Add clippy allows in teloxide_tests_macros
will-lynas Nov 7, 2024
b3f7f19
Remove unnecessary clippy disables teloxide_tests
will-lynas Nov 7, 2024
abfc4fe
Add clippy disable for tests
will-lynas Nov 7, 2024
0e3aaf4
Merge pull request #20 from will-lynas/ci
LasterAlex Nov 7, 2024
11a3ecf
Merge remote-tracking branch 'upstream/latest-teloxide' into random-port
will-lynas Nov 7, 2024
bb5ece9
rename to ServerManager
will-lynas Nov 7, 2024
5eaadfe
split out routes
will-lynas Nov 7, 2024
6d0bf8f
change order of routes
will-lynas Nov 7, 2024
2804568
split out run_server again
will-lynas Nov 7, 2024
5b94c56
separate bot token routes
will-lynas Nov 7, 2024
4523da4
factor out the common bot token prefix
will-lynas Nov 7, 2024
1b807f4
import web stuff rather than qualify
will-lynas Nov 7, 2024
b8ab275
factor out create server
will-lynas Nov 7, 2024
b7776c4
move wait_for_server out of Server
will-lynas Nov 7, 2024
91828ad
turn on unwrap_used again
will-lynas Nov 7, 2024
36bd146
change control c handler setup
will-lynas Nov 7, 2024
40854a1
delete ctrlc handler
will-lynas Nov 8, 2024
208854b
inject ServerState to hold files etc.
will-lynas Nov 8, 2024
9c92e0f
rename ServerState to State
will-lynas Nov 8, 2024
dd1a1ed
move State to mock_bot
will-lynas Nov 8, 2024
6b08c28
store state in mock bot not server
will-lynas Nov 8, 2024
4b37b4a
replace global FILES
will-lynas Nov 8, 2024
d403150
remove dead code disable on MockBot
will-lynas Nov 8, 2024
25abc8f
put the mutex around all of State
will-lynas Nov 8, 2024
9cd7a96
remove parking_lot
will-lynas Nov 8, 2024
deed987
remove RESPONSES
will-lynas Nov 8, 2024
3fae785
fix handlers
will-lynas Nov 8, 2024
a62b1a8
remove global MESSAGES
will-lynas Nov 8, 2024
7b4e231
remove storage lock
will-lynas Nov 8, 2024
930d19b
fix mutex guards being held over awaits
will-lynas Nov 8, 2024
2eb9a2b
make bot lock an option
will-lynas Nov 8, 2024
518b287
Add assert_state
will-lynas Nov 8, 2024
147f2b3
Add test for assert_state
will-lynas Nov 8, 2024
f25ae82
Add docstring to assert_state
will-lynas Nov 8, 2024
38bfee5
Merge pull request #21 from will-lynas/assert-state
LasterAlex Nov 8, 2024
a0f1790
Fixed tests hanging + changed to Dispatcher
LasterAlex Nov 9, 2024
977ab87
Removed obsolete crutch
LasterAlex Nov 9, 2024
9485d9d
Updated all examples except album_bot
LasterAlex Nov 9, 2024
8b1d716
Merge branch 'latest-teloxide' into random-port
LasterAlex Nov 9, 2024
228c3ed
Resolve merge conflicts
LasterAlex Nov 9, 2024
a93df7a
make stack_size public
will-lynas Nov 9, 2024
6fba361
Remove useless Arc on BOT_LOCK
will-lynas Nov 9, 2024
a89912e
Added try_get
LasterAlex Nov 9, 2024
24af275
Merge pull request #19 from will-lynas/random-port
LasterAlex Nov 9, 2024
9b41a05
Fix sqlite storage race condition?..
LasterAlex Nov 10, 2024
afbb272
Better panic messages
LasterAlex Nov 10, 2024
ce36302
If message exists, it isn't inserted
LasterAlex Nov 10, 2024
0b8a6ff
Split up files + added distribution function and error handler
LasterAlex Nov 10, 2024
18e3db6
Fixed set_my_commands and fixed set_message_reaction
LasterAlex Nov 11, 2024
dd7a587
Cargo fmt + error handling test
LasterAlex Nov 11, 2024
38a8eca
Updated documentation
LasterAlex Nov 11, 2024
3443512
Less strict check on message addition
LasterAlex Nov 11, 2024
9da2c90
Publicly reexported DistributionKey
LasterAlex Nov 11, 2024
cc32689
Documentation update on generics
LasterAlex Nov 11, 2024
342f980
Bot::from_env() now works
LasterAlex Nov 11, 2024
4fb20f9
Updated README
LasterAlex Nov 12, 2024
b78a795
specify nightly toolchain
will-lynas Nov 12, 2024
7b46aab
add rustfmt.toml
will-lynas Nov 12, 2024
9880d2b
run cargo fmt
will-lynas Nov 12, 2024
090a64a
add a clippy disable
will-lynas Nov 12, 2024
2b1afda
Merge pull request #22 from will-lynas/nightly-fmt
LasterAlex Nov 12, 2024
c831110
make server public
will-lynas Nov 14, 2024
2e7d0ad
make routes private
will-lynas Nov 14, 2024
fd024c0
make ServerManager start pub(crate)
will-lynas Nov 14, 2024
82bd80f
expose the body types
will-lynas Nov 14, 2024
3e04a19
Fixed some exposed functions
LasterAlex Nov 14, 2024
bcbf6b5
Merge pull request #23 from will-lynas/expose-some-types
LasterAlex Nov 14, 2024
53a0545
Added send_invoice endpoint
LasterAlex Nov 19, 2024
4422574
Better error message on no endpoint
LasterAlex Nov 19, 2024
e2e1445
Fixed strange data failure
LasterAlex Dec 28, 2024
6dc7f70
Implement deleteMessages
IlyaBizyaev Jan 11, 2025
8cef668
Merge pull request #27 from IlyaBizyaev/feat/delete-messages
LasterAlex Jan 12, 2025
313d4a1
Add MockMessageNewChatMembers
IlyaBizyaev Jan 13, 2025
05f7cef
Merge pull request #28 from IlyaBizyaev/feat/new_chat_members
LasterAlex Jan 14, 2025
5e4513c
Fix forward origin
IlyaBizyaev Feb 22, 2025
b2b4339
Make editMessageText delete reply markup to match Telegram's behavior
IlyaBizyaev Feb 26, 2025
8d25332
Merge pull request #31 from IlyaBizyaev/fix/edit-text-markup
LasterAlex Feb 27, 2025
af8489d
Merge pull request #30 from IlyaBizyaev/fix/forward-origin
LasterAlex Feb 27, 2025
14f0876
Add support for UpdateKind::EditedMessage
IlyaBizyaev Feb 2, 2025
ecd5d9c
Merge pull request #29 from IlyaBizyaev/feat/edited-message
LasterAlex Feb 28, 2025
4c4f82e
Make edit_message_text return ApiError::MessageNotModified
IlyaBizyaev Feb 28, 2025
1587c0d
Merge pull request #32 from IlyaBizyaev/feat/canonical-errors
LasterAlex Mar 1, 2025
e7d64e0
Added support for TBA 7.5
LasterAlex Mar 2, 2025
43841f5
Merge pull request #34 from LasterAlex/tba-7.5
LasterAlex Mar 2, 2025
b166300
Added mocking of update poll
LasterAlex Mar 7, 2025
74ae80f
Merge pull request #36 from LasterAlex/add-mock-update-poll
LasterAlex Mar 7, 2025
69e7d47
Migrated to 0.15.0
LasterAlex Apr 24, 2025
d24aee3
Docs fix
LasterAlex Apr 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 43 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
on:
push:
branches: [ "master" ]
branches: ["master"]
pull_request:
branches: [ "master" ]
branches: ["*"]

name: Continuous integration

Expand Down Expand Up @@ -36,27 +36,51 @@ jobs:
- nightly

steps:
- uses: actions/checkout@v4
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4

- name: Cache Dependencies
uses: Swatinem/rust-cache@v2

- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}

- name: Build
run: cargo build --verbose

- name: Run tests
run: cargo test --verbose

check-examples:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4

- name: Cache Dependencies
uses: Swatinem/rust-cache@v2

- name: Check examples
run: cargo check --manifest-path=./examples/Cargo.toml

check-formatting:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cache Dependencies
uses: Swatinem/rust-cache@v2

- name: Check formatting
run: cargo fmt --all -- --check

check-clippy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Cache Dependencies
uses: Swatinem/rust-cache@v2
- name: Cache Dependencies
uses: Swatinem/rust-cache@v2

- name: Check examples
run: cargo check --manifest-path=./examples/Cargo.toml
- name: Check clippy
run: cargo clippy --all-targets -- -D warnings
Loading